CSS Test: Page Size - Handling Page Size - Oversized


Melinda Grant, 2008/07/28 20:55

The .5em border in the page context refers to the default page font, whereas the .5em border-top in the div refers to the div's font, which it inherits from 'body'. The UA is free to choose its default as the font set on html, so the test *could* work as intended; but the UA is also free not to align the page default font with the html font (and it seems our implementations have chosen this path). So the border widths don't necessarily match. If you want them to be the same, set font-size in both the page context and on body. (But they don't need to match to prove this assertion, so I'd remove the div altogether.)

The font size used produces a very large font for the given page size, in some cases causing the output to overflow onto a second page. I suggest changing it to ~15cm.

Tom Clancy, 2008/07/29 10:49


Melinda Grant, 2008/07/29 16:01

Looks good.

Melinda Grant, 2008/11/06 19:04

We have a duplicate on this. A couple of UA's have problems with this large a scale factor, whereas they don't with the other test, which uses a 10/1 scale factor. I don't really think the implementations ought to have to make changes to handle this large a scale factor, so I'm going to mark this one the dup.

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