- From: Gérard Talbot <css21testsuite@gtalbot.org>
- Date: Mon, 8 Oct 2012 20:09:30 -0400
- To: "Arron Eicholz" <arron.eicholz@microsoft.com>
- Cc: "Public CSS test suite mailing list" <public-css-testsuite@w3.org>
Arron,
Many tests submitted by Microsoft deserve some tweakings, adjustments in
their code so that they can be more reliable and more accurate.
1-
*-applies to inline-block tests
-------------------------------
Many *-applies-to-012 tests are testing applicability to inline-block. I
have started changing empty <div> into the following markup structure:
<div>
<span id="inline-block">
<span class="block-descendant"></span>
<span class="block-descendant"></span>
</span>
</div>
with the rules:
span#inline-block
{
/* other possible declarations */
display: inline-block;
}
span.block-descendant
{
display: block;
/* other possible declarations */
}
This makes testing inline-block not just more realistic but overall much
more reliable, trustworthy. It's still not ideal as the
block-descendants are empty; ideally, we would want these to have some
content, even just a letter or .
Eg.
http://test.csswg.org/suites/css2.1/nightly-unstable/html4/right-applies-to-012.htm
and
http://test.csswg.org/suites/css2.1/nightly-unstable/html4/height-applies-to-012.htm
2-
*-applies to inline-table tests
-------------------------------
Many *-applies-to-014 tests are testing applicability of a property to
inline-table elements. Those are missing vertical-alignment of such
inline-table. When the inline-table has a row with an empty cell, then
it should be vertically-aligned to the bottom edge of the content box of
such cell:
http://lists.w3.org/Archives/Public/www-style/2012Sep/0246.html
In other words, the vertical alignment of such inline-table inside the
line box requires to be set accordingly.
Eg.
http://test.csswg.org/suites/css2.1/nightly-unstable/html4/margin-applies-to-014.htm
and
http://test.csswg.org/suites/css2.1/nightly-unstable/html4/height-applies-to-014.htm
and the important tests:
http://www.gtalbot.org/BrowserBugsSection/css21testsuite/vertical-align-inline-table-issue.html
which lead to
http://test.csswg.org/suites/css2.1/nightly-unstable/html4/inline-table-valign-002.htm
3-
'table-layout: fixed' requirements in tests
-------------------------------------------
Many tests involving tables and having 'table-layout: fixed'
declarations are not reliably, are not certain to be triggering
table-layout: fixed algorithm because the table element has no width set
(or implicit width: auto) when its single cell has a set width. This has
been proven unreliable. See
http://lists.w3.org/Archives/Public/www-style/2012Aug/0337.html
and
http://lists.w3.org/Archives/Public/www-style/2012Aug/0339.html
Eg.
http://test.csswg.org/suites/css2.1/nightly-unstable/html4/background-applies-to-002.htm
is not best and many other tests are like that.
So, I have started updating many *-applies-to- tests so that the table
element has a set width. I'm still lagging behind though as I will need
to re-visit many tests now.
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 Tuesday, 9 October 2012 00:09:57 UTC