Been scouring my epubs programmatically to see just how margins were used on body and @page, the results were interesting to say the least.
- Nearly 50% of my epubs have some sort of margins specified on body or @page
- 60% of these specify margins in em (generally the most egregious offender, why em margins on devices that allow font size to be increased?!)
- 27% have margins specified in px
- 13% specify margins using pt, typically 5pt
Note many have some combination of px/pt/em, didn't count those variations.
The margins in pt were generally the most reasonable. I also saw a lot of right hand margins being specified in px to get around Adobe's page number rendering.
I've been thinking more about how to programmatically replace/insert margins. This is probably a very reasonable thing to do, at least when considering users of older Adobe renderers that may want to create a slightly larger right margin. Aside from the matter of successfully injecting them, which is solvable, this brings up other questions for Quality Check, as one would want to be able to exclude whatever margin Modify Epub was configured to insert from a search...