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

'top: auto' or 'left: auto' on abs. pos. or fixed pos. testcases: optional, should be labelled/marked with a "may" flag.

From: Gérard Talbot <css21testsuite@gtalbot.org>
Date: Sun, 8 Aug 2010 19:09:12 -0700
Message-ID: <4e8d4711a0641107fe5bb29b5a66abba.squirrel@cp3.shieldhost.com>
To: "public-css-testsuite@w3.org" <public-css-testsuite@w3.org>
Hello all,

Testcases involving 'top: auto' or 'left: auto' on abs. pos. or fixed
pos. elements should be adjusted so that section 10.3.7[1] and 10.6.4[2]
can apply. In other words, the predicted rendered layout by the
testcases is optional, unreliable/uncertain, should be marked as not
necessary for conformance or should be labelled/marked with a "may"
flag.. whatever.


CSS Test: position: absolute; top: auto; test (assumed initial values)
http://test.csswg.org/suites/css2.1/20100727/html4/abspos-011.htm

http://test.csswg.org/suites/css2.1/20100727/html4/abspos-012.htm

http://test.csswg.org/suites/css2.1/20100727/html4/abspos-013.htm

http://test.csswg.org/suites/css2.1/20100727/html4/abspos-014.htm

http://test.csswg.org/suites/css2.1/20100727/html4/abspos-015.htm

http://test.csswg.org/suites/css2.1/20100727/html4/abspos-016.htm

http://test.csswg.org/suites/css2.1/20100727/html4/abspos-017.htm

http://test.csswg.org/suites/css2.1/20100727/html4/abspos-018.htm

http://test.csswg.org/suites/css2.1/20100727/html4/abspos-019.htm

CSS Test: position: fixed; top: auto; test - html margin
http://test.csswg.org/suites/css2.1/20100727/html4/abspos-020.htm

CSS Test: position: fixed; top: auto; test - margin collapsing
http://test.csswg.org/suites/css2.1/20100727/html4/abspos-021.htm

CSS Test: position: fixed; top: auto; test - margin collapsing
http://test.csswg.org/suites/css2.1/20100727/html4/abspos-022.htm

CSS Test: left:auto for fixed-pos blocks inside abs-pos blocks
http://test.csswg.org/suites/css2.1/20100727/html4/abspos-023.htm
(it does rely on top: auto as well)

Absolutely positioned, non-replaced elements, static position of fixed
element
http://test.csswg.org/suites/css2.1/20100727/html4/absolute-non-replaced-height-001.htm
"The calculation of static position is based on initial containing block
when there is a fixed positioned element."

CSS Test: Margin collapsing with fixed positioned auto boxes
http://test.csswg.org/suites/css2.1/20100727/html4/margin-collapse-161.htm

There may be others.

[1]
Section 10.3.7 Absolutely positioned, non-replaced elements
"
(...)  The static position for 'left' is the distance from the left edge
of the containing block to the left margin edge of a hypothetical box that
would have been the first box of the element if its 'position' property
had been 'static' and 'float' had been 'none'. (...)
But rather than actually calculating the dimensions of that hypothetical
box, user agents are free to make a guess at its probable position.
"
http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width

[2]
Section 10.6.4 Absolutely positioned, non-replaced elements
"
(...) the static position for 'top' is the distance from the top edge of
the containing block to the top margin edge of a hypothetical box that
would have been the first box of the element if its specified 'position'
value had been 'static' and its specified 'float' had been 'none' and
'clear' had been 'none'.
(...) But rather than actually calculating the dimensions of that
hypothetical box, user agents are free to make a guess at its probable
position.
"
http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-height

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

CSS 2.1 test suite (beta 2; July 27th 2010):
http://test.csswg.org/suites/css2.1/20100727/html4/toc.html

CSS 2.1 test suite contributors:
http://test.csswg.org/source/contributors/
Received on Monday, 9 August 2010 02:09:49 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 20 September 2010 17:52:02 GMT