FW: [CSS21] Which 'direction' property for replacing 'auto' with static position?

We have carefully examined the test cases and current behavior and we agree with your proposal.

The proper behavior is S A A S (in your notation).

The changes you propose to 10.3.7 and 10.3.8 do in fact fix a problem where the text contradict the intent of 'auto' positioning.

The same consideration should apply to positioning in vertical text.

Notes from our review:
-----
Case A: IE7 is correct. SPCB is the correct context. Left and Right are auto so it behaves like Static. Positioned like static.

Case B: FF3 is correct. Element is absolutely positioned. So containing block decides position.

Case C: FF3 is correct. Overconstrained, element is absolutely positioned. So containing block decides position.

Case D: IE7 is correct. Left and Right are auto so it behaves like static. Positioned like static.

--Alex

> -----Original Message-----
> From: www-style-request@w3.org [mailto:www-style-request@w3.org] On
> Behalf Of L. David Baron
> Sent: Wednesday, February 20, 2008 3:33 PM

> https://bugzilla.mozilla.org/attachment.cgi?id=302176

> ... My results
> of testing in different browsers, a slightly extended version of his
> from
> https://bugzilla.mozilla.org/show_bug.cgi?id=403328#c17 , are the
> following, where:
>   S = Static-position containing block
>   A = normal (absolute) containing block
>   L = always left side
>   C = always center
>   E = element's direction property
>
> Case:    A B C D
> ================
> CSS 2.0  E E E E
> CSS 2.1  A A A A (without proposed change) CSS 2.1  S A A S (with
> proposed change)
> IE 7     S S S S
> Safari 3 A A A A (standards mode)
> Safari 3 S S S S (quirks mode)
> Mozilla  E E L S (Firefox 2 / Gecko 1.8) Mozilla  A A A S (current
> trunk) Mozilla  S A A S (what we're changing trunk to before Firefox
> 3)
> Opera    L C L L (9.25)
>
>
> Thus I'd propose that in the following places:
>
>  1. Section 10.3.7, paragraph beginning "If all three of 'left',
>     'width', and 'right' are 'auto'"
>  2. Section 10.3.7, bullet (2), which begins "'left' and 'right' are
>     'auto' and 'width' is not 'auto'"
>  3. Section 10.3.8, bullet (2), which begins If both 'left' and
>     'right' have the value 'auto'"
>
> we replace the text:
>
> # 'direction' [property] of the containing block (the word "property"
> is used in 10.3.7 but not in 10.3.8)
>
> with the text:
>
> # the 'direction' property of the element establishing the #
> static-position containing block
>
> and then define (in the bulleted list at the beginning of 10.3.7):
>
> # The <dfn>static-position containing block</dfn> is the containing #
> block of a hypothetical box that would have been the first box of #
> the element if its 'position' property had been 'static' and its #
> 'float' had been 'none'.
>
> (There I'm trying to match the wording of the definition of "static
> position".)
>

Received on Thursday, 28 February 2008 00:29:36 UTC