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

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

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Sun, 07 Nov 2004 00:21:20 -0500
Message-ID: <418DB0D0.9060500@mit.edu>
To: Ian Hickson <ian@hixie.ch>
CC: www-style@w3.org

Ian Hickson wrote:

[snipped reference to part of spec I really should have noticed]
> So you work out the position as it would have been relative to the top of 
> the initial containing block (in this particular case, a box at the canvas 
> origin, with the size of the viewport) and then you place the box relative 
> to the viewport, using that offset.

I'm not sure that's sufficient...  consider the following marginally 
more complicated testcase:

   <scrollable style="overflow: scroll">
     Long content
     <fixed style="position: fixed">Text</fixed>

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.

> That's a fancy way of saying that the static position of a fixed-
> positioned box is its initial position before scrolling, and that 
> subsequent scrolling doesn't affect it.

True for scrolling of the viewport itself, but not for scrolling in 
general.  :(

Received on Sunday, 7 November 2004 05:21:42 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:16 UTC