- From: Gérard Talbot <css21testsuite@gtalbot.org>
- Date: Sat, 11 Feb 2012 19:00:09 -0500
- To: "Public CSS test suite mailing list" <public-css-testsuite@w3.org>
Hello,
http://test.csswg.org/suites/css2.1/nightly-unstable/html4/font-size-114.htm
1-
line 12 span { font-size: larger; }
13 .tests * { vertical-align: bottom; }
line 14 .tests, span { font: 900 1em Ahem, Verdana, sans-serif;
color: navy; }
At line 12, font-size of inner spans is set and defined to be 'larger'.
At line 14, font-size of spans is reset and redefined to be 1em which is
the font-size of its parent. The font shorthand redefines the font-size
at line 14. So, current browsers (Firefox 10, Opera 11.61, Chrome
17.0.963.46) are correctly handling such test.
Line 14 should be instead/rather/replaced with:
.tests { font: 900 1em Ahem, Verdana, sans-serif; color: navy; }
span {font-family: Ahem, Verdana, sans-serif;}
2-
The specification says:
"
A <relative-size> keyword is interpreted relative to the table of font
sizes and the font size of the parent element. Possible values are: [
larger | smaller ]. For example, if the parent element has a font size
of 'medium', a value of 'larger' will make the font size of the current
element be 'large'. (...) The UA *may* have to extrapolate table values
if the numerical value goes beyond the keywords.
"
and the table of font sizes is:
CSS absolute-size values
xx-small x-small small medium large x-large xx-large
So, a test which would test all known absolute-size would only use 6
levels deep of nested-ness (depth of tree). In font-size-114, there are
25 (!) levels of nested spans. So, either the test should use the "may"
flag or it should reduce the levels of nested spans to 6 levels.
Gérard
--
Contributions to the CSS 2.1 test suite:
http://www.gtalbot.org/BrowserBugsSection/css21testsuite/
CSS 2.1 Test suite RC6, March 23rd 2011:
http://test.csswg.org/suites/css2.1/20110323/html4/toc.html
CSS 2.1 test suite harness:
http://test.csswg.org/harness/
Contributing to to CSS 2.1 test suite:
http://www.gtalbot.org/BrowserBugsSection/css21testsuite/web-authors-contributions-css21-testsuite.html
Received on Sunday, 12 February 2012 00:00:40 UTC