W3C home > Mailing lists > Public > public-css-testsuite@w3.org > November 2010

[RC3] absolute-non-replaced-height-003 and absolute-non-replaced-max-height-003 : vertical centering

From: Gérard Talbot <css21testsuite@gtalbot.org>
Date: Tue, 23 Nov 2010 18:10:20 -0800
Message-ID: <872c3f5a9f665ac95a0fe786903c9c7c.squirrel@cp3.shieldhost.com>
To: "Arron Eicholz" <Arron.Eicholz@microsoft.com>
Cc: "public-css-testsuite@w3.org" <public-css-testsuite@w3.org>
Hello,

http://test.csswg.org/suites/css2.1/20101027/html4/absolute-non-replaced-height-003.htm

http://test.csswg.org/suites/css2.1/20101027/xhtml1/absolute-non-replaced-height-003.xht

http://test.csswg.org/source/contributors/microsoft/submitted/Chapter_10/absolute-non-replaced-height-003.xht

Those testcases are ok as far as pass/fail conditions and coding are
involved... but not the assert text.

The title and assert refer to vertical centering.

1-
<meta name="assert" content="An element is vertically centered when both
'margin-top' and 'margin-bottom' have equal values, when 'top', 'bottom'
and 'height' are all are not auto and 'margin-top' and 'margin-bottom'
are both 'auto'.">

But that is not correct, not true.

An abs. pos. non-replaced element's padding box (which is the area
painted by background-color of the element) will be vertically centered
within its containing block only if both 'margin-top' and
'margin-bottom' have equal values and if 'top' and 'bottom' have equal
values.

An abs. pos. non-replaced element's margin box will be vertically
centered within its containing block only if 'top' and 'bottom' have
equal values.


2-
If you carefully read
Section 10.6.4 Calculating heights and margins of absolutely positioned,
non-replaced elements
http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-height
you will see that nowhere it is defined how to vertically center an abs.
pos. non-replaced element within its containing block.

3-
http://test.csswg.org/suites/css2.1/20101027/html4/absolute-non-replaced-max-height-003.htm

http://test.csswg.org/suites/css2.1/20101027/xhtml1/absolute-non-replaced-max-height-003.xht

http://test.csswg.org/source/contributors/microsoft/submitted/Chapter_10/absolute-non-replaced-max-height-003.xht

also have/use the same kind of wrong assert text too.

regards, Gérard
-- 
Contributions to the CSS 2.1 test suite:
http://www.gtalbot.org/BrowserBugsSection/css21testsuite/

CSS 2.1 test suite (RC3; October 27th 2010):
http://test.csswg.org/suites/css2.1/20101027/html4/toc.html

CSS 2.1 test suite contributors:
http://test.csswg.org/source/contributors/
Received on Wednesday, 24 November 2010 02:10:56 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 24 November 2010 02:11:29 GMT