Many problems with right-offset-002.htm testcase

Hello,

http://test.csswg.org/suites/css2.1/20100815/html4/right-offset-002.htm

This one has many problems.

First, the enclosing div, #div1, is not positioned at all: it is static.

Second, the title and the assert are quite wrong. Even if the enclosing
parent div (#div1) was or had been relatively positioned, the title and
the assert would still be wrong.

"For relatively positioned boxes, the offset is with respect to the
right edge of the box itself."
http://www.w3.org/TR/CSS21/visuren.html#propdef-right

I propose to replace

   <title>CSS Test: Position 'right' property defines the offset from
the right content edge of the parent box for relative
positioning</title>
(...)
   <meta name="assert" content="The 'right' property, for relative
positioning, specifies the offset of the element in relation to the
parent's right content edge.">

with

   <title>CSS Test: Position 'right' property defines the offset from
the right of the box itself for relative positioning</title>
(...)
   <meta name="assert" content="The 'right' property, for relative
positioning, specifies the offset of the box itself from the right
toward the left. If 'left' is 'auto', then its computed value is
minus the value of 'right' in which case the box will move from the
right toward the left by the value of 'right'. In this testcase,
right offset is 0; so, it will move toward the left from its normal
in-flow position by a value of -0. So, it will not move.">

Third, I'm not even sure if the testcase should still remain in the
testsuite even with such changes. You see, if the tester removes
"position: relative" and/or removes "right: 0" (with Firefox DOM
inspector, Opera DragonFly, IE8 developer tools, Chrome web inspector,
Konqueror domtree viewer, etc. or even does so manually in an editor),
then the testcase will still be passed by a lot of current mainstream
browsers because that inner white-background div should not move anyway,
to begin with. So that testcase is not testing what it is supposed/was
aiming at testing actually.

Whatever happens with this right-offset-002.htm testcase, I will propose
to add these 2 testcases to the test suite:

http://www.gtalbot.org/BrowserBugsSection/css21testsuite/right-offset-004.htm

and

http://www.gtalbot.org/BrowserBugsSection/css21testsuite/box-offsets-rel-pos-001.htm

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

CSS 2.1 test suite (beta 3; August 15th 2010):
http://test.csswg.org/suites/css2.1/20100815/html4/toc.html

CSS 2.1 test suite contributors:
http://test.csswg.org/source/contributors/

Received on Tuesday, 14 September 2010 02:48:29 UTC