W3C home > Mailing lists > Public > www-style@w3.org > November 2004

Re: [CSS21] Contradiction in the spec with auto-offset fixed-position elements

From: Ian Hickson <ian@hixie.ch>
Date: Sun, 7 Nov 2004 05:42:48 +0000 (UTC)
To: Boris Zbarsky <bzbarsky@MIT.EDU>
Cc: www-style@w3.org
Message-ID: <Pine.LNX.4.61.0411070537410.8631@dhalsim.dreamhost.com>

On Sun, 7 Nov 2004, Boris Zbarsky wrote:
> 
> I'm not sure that's sufficient...  consider the following marginally 
> more complicated testcase:
> 
> <root>
>   <scrollable style="overflow: scroll">
>     Long content
>     <fixed style="position: fixed">Text</fixed>
>   </scrollable>
> <root>
>
> Now scrolling the <scrollable> will affect the static position of 
> <fixed> with respect to the initial containing block, which means it 
> should really move when we scroll <scrollable>.  Again, I don't think 
> that's intended or desirable.

Maybe we should change it to "For the purposes of calculating the static 
position, the containing block of fixed positioned elements is the initial 
containing block instead of the viewport, and all scrollable boxes 
should be assumed to be scrolled to their origin." or some such?

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Sunday, 7 November 2004 05:42:51 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:34 GMT