- From: Peter Sorotokin <psorotok@adobe.com>
- Date: Mon, 25 Sep 2006 00:49:51 -0700
- To: <public-css-testsuite@w3.org>
David, It does define the height of the *line box*, but borders are supposed to be around the element's *content area* (if there are no padding), not the line box (so that, for example, when line-height property is modified, the position of the borders does not change relative to the text). It seems that this is how it is implemented in Mozilla and Opera (but not IE) and I think there are tests for that in the suite. The CSS spec could have been more explicit on how that works. The height of the content area is explicitly undefined in section 10.6.1 (as you pointed out). What browsers seem to do is to define the content area height (and position) being the same as *default* line height (which is quite reasonable). Following the spec *suggestions* and defining content area height in terms of the em box of the font or ascender/descender (which is the same thing for Ahem) does not seem to work for this test. Peter -----Original Message----- From: public-css-testsuite-request@w3.org [mailto:public-css-testsuite-request@w3.org] On Behalf Of L. David Baron Sent: Monday, September 25, 2006 12:25 AM To: public-css-testsuite@w3.org Subject: Re: possible bug in t100801-c42-ibx-ht-00-d-a.xht On Monday 2006-09-25 00:09 -0700, Peter Sorotokin wrote: > Correct me if I am wrong, but CSS 2.1 does not define the height of the > line box and thus does not define the position of the horizontal border > of inline elements. Yet, this test It does define the height of the line box (10.8 and 9.4.2). It's true that the visual height of inline elements is defined in a slightly vague way -- 10.6.1 allows something unspecified based on the font -- but I think the Ahem font has metrics such that every reasonable thing based on the font should lead to the same result. Perhaps the spec should limit the options to a set of choices. -David -- L. David Baron <URL: http://dbaron.org/ > Technical Lead, Layout & CSS, Mozilla Corporation
Received on Monday, 25 September 2006 07:50:45 UTC