W3C home > Mailing lists > Public > public-css-testsuite@w3.org > August 2012

[RC6] margin-right-applies-to-* : modifications and news

From: Gérard Talbot <css21testsuite@gtalbot.org>
Date: Sun, 19 Aug 2012 17:27:00 -0400
Message-ID: <c3b9d5ade3e44cbd1990169e07aedc85.squirrel@ed-sh-cp3.entirelydigital.com>
To: "Arron Eicholz" <arron.eicholz@microsoft.com>
Cc: "Public CSS test suite mailing list" <public-css-testsuite@w3.org>
Arron,

I have made modifications to all 15 tests; at least 2 of them are worth
giving more explanations.

[RC6]
http://test.csswg.org/suites/css2.1/20110323/html4/margin-right-applies-to-001.htm

[nightly-unstable]
http://test.csswg.org/suites/css2.1/nightly-unstable/html4/margin-right-applies-to-001.htm

[src]
http://test.csswg.org/source/approved/css2.1/src/margin-padding-clear/margin-right-applies-to-001.xht

[reftest, src]
http://test.csswg.org/source/approved/css2.1/src/margin-padding-clear/margin-left-applies-to-001-ref.xht


(...)

[RC6]
http://test.csswg.org/suites/css2.1/20110323/html4/margin-right-applies-to-013.htm

[nightly-unstable]
http://test.csswg.org/suites/css2.1/nightly-unstable/html4/margin-right-applies-to-013.htm

[src]
http://test.csswg.org/source/approved/css2.1/src/margin-padding-clear/margin-right-applies-to-013.xht

[reftest, src]
http://test.csswg.org/source/approved/css2.1/src/margin-padding-clear/margin-left-applies-to-009-ref.xht


[RC6]
http://test.csswg.org/suites/css2.1/20110323/html4/margin-right-applies-to-014.htm

[nightly-unstable]
http://test.csswg.org/suites/css2.1/nightly-unstable/html4/margin-right-applies-to-014.htm

[src]
http://test.csswg.org/source/approved/css2.1/src/margin-padding-clear/margin-right-applies-to-014.xht

[reftest, src]
http://test.csswg.org/source/approved/css2.1/src/margin-padding-clear/margin-left-applies-to-009-ref.xht


[RC6]
http://test.csswg.org/suites/css2.1/20110323/html4/margin-right-applies-to-015.htm

[nightly-unstable]
http://test.csswg.org/suites/css2.1/nightly-unstable/html4/margin-right-applies-to-015.htm

[src]
http://test.csswg.org/source/approved/css2.1/src/margin-padding-clear/margin-right-applies-to-015.xht

[reftest, src]
http://test.csswg.org/source/approved/css2.1/src/margin-padding-clear/margin-left-applies-to-009-ref.xht


I have used 'float: left' on the div#wrapper so that its width
"shrinks-to-fit"; so that way, I replaced 'direction: rtl' in several
tests and setting its width is no longer needed. Also, thanks to 'float:
left', I can conveniently reused the already created and available
reftests margin-left-applies-to-001-ref.xht and
margin-left-applies-to-009-ref.xht

'border-collapse: collapse' (unneeded, unnecessary) and 'table-layout:
fixed' (not involved and not applied anyway) have both been removed.


After those changes, there are now some browsers which fail the modified
tests!

Chrome 21.0.1180.79 insists on giving a 1px width to the table-row in
http://test.csswg.org/source/approved/css2.1/src/margin-padding-clear/margin-right-applies-to-013.xht
and
http://test.csswg.org/source/approved/css2.1/src/margin-padding-clear/margin-right-applies-to-014.xht
and I have no idea why; as far as I can see, this must be a bug.



Chrome 21.0.1180.79 and Opera 12.0.1 fail
http://test.csswg.org/source/approved/css2.1/src/margin-padding-clear/margin-right-applies-to-015.xht

"
The caption boxes are block-level boxes that retain their own content,
padding, margin, and border areas, and are rendered as normal block
boxes inside the table wrapper box.
"
17.4 Tables in the visual formatting model
http://www.w3.org/TR/CSS21/tables.html#model

In the case of Chrome, I'm not sure why it does what it does.

Regarding Opera 12.0.1, I believe it is because it does not make the
anonymous table wrapper box is as wide as max(table-width,
table-caption-min-intrinsic-width)
http://lists.w3.org/Archives/Public/www-style/2010Sep/0186.html

Finally, regarding
http://test.csswg.org/source/approved/css2.1/src/margin-padding-clear/margin-right-applies-to-015.xht
the floating could be applied to the table and not on the div#wrapper since

"
The computed values of properties 'position', 'float', 'margin-*',
'top', 'right', 'bottom', and 'left' on the table element are used on
the table wrapper box and not the table box
"
17.4 Tables in the visual formatting model
http://www.w3.org/TR/CSS21/tables.html#model
therefore floating the table should let the caption box margin-right be
rendered; therefore the gap between respective borders should be
noticeable, viewable.

Ok. I am opened and listening to feedback everything here.

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, 19 August 2012 21:27:27 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 19 August 2012 21:27:33 GMT