CSS Test: em/ ex units in the @page size property refer to the page context's font


Melinda Grant, 2008/07/29 16:50

The 'body' font is not (necessarily) the page context font. Set the font-size in the page context rather than on body.

The 'size' value needs to be in em or ex units, not inches.

The description needs to take the margin and border widths into account when describing the size of the border box (subtract them from the expected dimensions).

Let's shorten up the title. I suggest “page size: em/ex units”. (You might use em for the width and ex for the height…)

Tom Clancy, 2008/09/26 11:12

I'm hoping I've got the math right here: (18 / 72) * 16 = 4 inches. Minus 1in margin on all sides = 2 inch square box. I used ex as well, but just doubled it. Not sure what's a better way to calculate those.

Tom Clancy, 2008/11/20 07:21

Definitely didn't have my math (or my 'ex') right here. Reworking.

Tom Clancy, 2008/11/20 11:17

Ok, I'd swear I've got this right using the Ahem font, where 1ex = 0.8em, but Prince doesn't like it.

You could leave a comment if you were logged in.
test/css2.1/submit/48.txt · Last modified: 2014/12/09 15:48 (external edit)
Recent changes RSS feed Valid XHTML 1.0 Valid CSS Driven by DokuWiki