Re: [CSS21] t1508-c527-font-01-b.xht

> The test referenced in the subject says that there should be a 9px gap
> between each line.
>  
> However, the line height in this case is applied to a block element (p).
> CSS 2.1 Section 10.8.1 says "On a block-level
> <http://www.w3.org/TR/CSS21/visuren.html#block-level> , table-cell,
> table-caption or inline-block element whose content is composed of
> inline-level <http://www.w3.org/TR/CSS21/visuren.html#inline-level>
> elements, 'line-height' specifies the minimal height of line boxes
> within the element."
>  
> So should the test description be modified to say that there should be
> *at least* a 9px gap between each line?

No, because there is nothing on the line that would increase the line
spacing. The 'line-height' property sets the effective height of inline
boxes. The height of each line box is determined by vertical-aligning
all the content on the line and then calculating the height required
to contain everything on the line. In this case, there is only some
18px text with a line-height of 27px.

See http://www.w3.org/TR/CSS21/visudet.html#line-height

There is another problem with that test, though: it's quite difficult
(if not impossible) to figure out whether the UA has passed or not.

~fantasai

Received on Monday, 16 April 2007 15:04:36 UTC