Re: dynamic-top-change-005.htm

On 09/29/2011 01:25 PM, Robert Hogan wrote:
> Hi there,
>
> http://test.csswg.org/suites/css2.1/20110323/html4/dynamic-top-
> change-005.htm
>
> This test assumes that a relatively positioned block should offset from its
> relatively positioned inline parent.
>
> I've put a reduction of this assumption at:
>
> https://bugs.webkit.org/attachment.cgi?id=109192
>
> See also https://bugs.webkit.org/show_bug.cgi?id=53140
>
> Is the test correct to assume this? Why shouldn't it instead offset from its
> nearest containing block, i.e. the 'grandparent'? Wouldn't that be the
> expected behaviour?

This is actually explicitly specified in CSS2.1:
http://www.w3.org/TR/CSS21/visuren.html#anonymous-block-level
"When such an inline box is affected by relative positioning, any resulting
  translation also affects the block-level box contained in the inline box."

~fantasai

Received on Thursday, 29 September 2011 21:45:51 UTC