- From: Gérard Talbot <www-style@gtalbot.org>
- Date: Fri, 18 Oct 2013 18:03:24 -0400
- To: Alan Gresley <alan@css-class.com>
- Cc: Glenn Adams <glenn@skynav.com>, W3C Style <www-style@w3.org>
Le 2013-10-17 21:49, Alan Gresley a écrit : > On 18/10/2013 3:52 AM, Glenn Adams wrote: >> In CSS2.1, we have the following in Section 10.8.1: >> >> "When an element contains text that is rendered in more than one font, >> user >> agents may determine the 'normal' >> 'line-height'<http://www.w3.org/TR/CSS2/visudet.html#propdef-line-height> >> value >> according to the largest font size." >> >> I'm curious if any UA actually implements this. I have tested Chrome, >> Opera, and Safari UAs, and none of these UAs seems to use the largest >> font >> size (of descendant fonts). [snipped] > Where the spec says "When an element contains text that is rendered in > more than one font," it is referring to types of font style like > 'Times New Roman', Georgia, 'Lucida Bright', etc. > > Your test is testing font-size, and it had anything to do with > line-height, then it should be coded as follows. > > <style type="text/css"> > span { background: yellowgreen; } > </style> > > <p id="test" style="border: 1px solid #C0C0C0"> > <span style="font-size: 12pt;">X</span> > <span style="font-size: 36pt;">X</span> > <span style="font-size: 18pt;">X</span> > </p> [snipped] Your code fragment, slightly modified (yellowgreen was replaced with CSS2.1 reserved color name lime) http://www.gtalbot.org/BrowserBugsSection/CSS3LineBox/multiple-line-box-various-font-sizes-AG.html > There is nothing ambiguous. Where is the red line in this test case? > Halfway? > > http://css-class.com/test/css/text/linebox-line-height-011.html Your multi-tests page focuses only on 1 single line box tests. I am *_not_* suggesting that your linebox-line-height-011.html is not valuable or not interesting here. Gérard
Received on Friday, 18 October 2013 22:03:57 UTC