CSS Test: @page padding on bottom and left using percentages

Discussion

Melinda Grant, 2008/08/05 20:14

Prefix the description with 'When printed, '.

Let's change the title to 'Page padding: percentage'. If there's another test for right and top or whatever, keep the bottom/left; else lose it.

Change the green to blue.

If you want the content box to *fill* the upper-right quadrant, you need to zero the margins, because percentages are relative to the page size, not the page area size. But it will meet the description as is.

Also you may want to set the padding on the right and top edges, rather than take the UA defaults. But again, it works as is, and should for all reasonable UA defaults.

Tom Clancy, 2008/08/07 07:37

Updated. I tried to copy the optional additions you mentioned because it definitely makes things clearer. I didn't 0 the top and right because that can cause problems, right? In Prince, the content is 50% from the left, but not 50% from the bottom. This has a pretty regular behavior in Prince, but I wanted to double check that is a Prince bug and not something I'm doing wrong.

Melinda Grant, 2008/08/12 16:17

Yeah, Prince appears to have a defect wrt height.

Lose the border, it's not needed here and is too close to the edge to be consistently visible anyway.

Tom Clancy, 2008/08/20 11:08

Done. I tweaked the description a bit given the border is gone.

Melinda Grant, 2008/08/20 18:52

Looks good.

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