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

containing-block-018/020/022 pass condition is backwards

From: L. David Baron <dbaron@dbaron.org>
Date: Thu, 14 Oct 2010 14:05:48 -0700
To: public-css-testsuite@w3.org
Message-ID: <20101014210548.GA27344@pickering.dbaron.org>
I believe the pass condition of the following tests is backwards:
though I also don't think they're testing what they intended to
test (though they are, nonetheless, good tests that we should have,
once the pass condition is corrected).

These tests have a blue absolutely positioned element whose left,
right, top, and bottom are all auto.  This means we fall into bullet
point (2) in section 10.3.7, which depends on the 'direction' of the
static-position containing block.  In these tests, the
static-position containing block is the parent, which has direction
'rtl'.  (The containing block itself is the grandparent, with
direction: rtl.)

This means 'right' (and 'top') should end up being set to the static
position, which is the center of the div (since the parent is 0x0),
and the block should be in the lower *left* corner of the box, not
the lower right.

(That said, this is a pretty complicated testcase and I'm not sure
of my analysis.)


L. David Baron                                 http://dbaron.org/
Mozilla Corporation                       http://www.mozilla.com/
Received on Thursday, 14 October 2010 21:06:17 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:13:21 UTC