W3C home > Mailing lists > Public > www-style@w3.org > August 2013

:stuck psuedo class WAS: specifying position:sticky

From: Ojan Vafai <ojan@chromium.org>
Date: Tue, 27 Aug 2013 17:34:27 -0700
Message-ID: <CANMdWTtawXFk0_HgeR1fxVDTxpDc0tXVnvjKn8emM5z4RXgBVQ@mail.gmail.com>
To: Corey Ford <cford@mozilla.com>
Cc: "www-style@w3.org" <www-style@w3.org>, "L. David Baron" <dbaron@dbaron.org>
This may be too early, but I think we should add a pseudo-class for
position:sticky's that are stuck to an edge. This lets you easily style the
stuck element (e.g. with a box-shadow).


On Tue, Jul 23, 2013 at 6:19 PM, Corey Ford <cford@mozilla.com> wrote:

> On 7/12/13 9:37 AM, Corey Ford wrote:
>
>> For any of 'top', 'bottom', 'left', and 'right' that are not 'auto', if
>> the box's normal position would cause that edge of its margin box to be
>> less than the specified distance within that padding edge of its scrolling
>> container, the box is repositioned to that distance from the edge
>>
>
>  Percentage values of these properties reference the padding box of the
>> scrolling container.
>>
>
> The content box of the scrolling container would also be reasonable at
> these points in the calculations. (I'm not entirely sure what I see WebKit
> doing, but it doesn't seem to be either.)
>
> Corey
>
>
>
Received on Wednesday, 28 August 2013 00:35:15 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:33 UTC