[RC6] questions and feedback on inline-formatting-context-010 and inline-formatting-context-011

Arron,

I am confused and wondering about 2 tests in the current CSS 2.1 test
suite.

First test
==========

[RC6]
http://test.csswg.org/suites/css2.1/20110323/html4/inline-formatting-context-010.htm

This test is seemingly trying to verify that "A line box is always tall
enough for all of the boxes it contains."
http://www.w3.org/TR/CSS21/visuren.html#inline-formatting

but I do not understand the test and I do not see how the test is
actually testing the quoted sentence above.

1- If #span2 has a set line-height of 10px, its 50px glyph should bleed
out of it anyway.

2- Within the test design logic, what's the use/purpose of setting a
defined height of 25px to the wrapping div?

3- Do you believe the test is actually testing the assert? I have doubts.

4- I believe that one reliable way to paint a line box is to set the
background-color of a wrapping block container. It's not the same when
setting background-color of an inline non-replaced.

5- I believe this test is better:
http://www.gtalbot.org/BrowserBugsSection/css21testsuite/inline-formatting-context-010a.html


Second test
===========

http://test.csswg.org/suites/css2.1/20110323/html4/inline-formatting-context-011.htm

1- When line-height is set on an inline non-replaced element, then it
sets its content area, content box.

"
The height of (...) inline [non-replaced] boxes, [this] is their
'line-height'.
"

"
The height of the inline box encloses all glyphs and their half-leading
on each side and is thus exactly 'line-height'.
"
http://www.w3.org/TR/CSS21/visudet.html#leading

so, why set a 20px border to the span? I don't understand this as a mean
to demonstrate the purpose of the test.

2- Why display: inline-block?

3- I think this testpage (original test with minimal modifications ...
although I would probably do more) is better :
http://www.gtalbot.org/BrowserBugsSection/css21testsuite/inline-formatting-context-011-GT.html

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 Thursday, 12 April 2012 03:07:05 UTC