W3C home > Mailing lists > Public > public-css-testsuite@w3.org > September 2011

Re: dynamic-top-change-005.htm

From: fantasai <fantasai.lists@inkedblade.net>
Date: Thu, 29 Sep 2011 14:45:19 -0700
Message-ID: <4E84E6EF.7030109@inkedblade.net>
To: Robert Hogan <lists@roberthogan.net>
CC: public-css-testsuite@w3.org, bzbarsky@mit.edu, css21testsuite@gtalbot.org
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 29 September 2011 21:45:58 GMT