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

Re: :stuck psuedo class WAS: specifying position:sticky

From: Corey Ford <cford@mozilla.com>
Date: Wed, 28 Aug 2013 07:55:36 -0700
Message-ID: <521E0F68.5080803@mozilla.com>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
CC: Ojan Vafai <ojan@chromium.org>, "www-style@w3.org" <www-style@w3.org>, "L. David Baron" <dbaron@dbaron.org>
On 2013-08-27 18:27, Tab Atkins Jr. wrote:
> Immediately bringing up the obvious question of what ":stuck {
> position: static; }" does.

Considering sticky positioning's dependence on various layout boxes, I 
see some more subtle circularity problems too. (Especially if we 
consider "reached the end of its containing block" to be not "stuck").

:stuck {
   top: auto; /* no longer top-sticky */
   margin-bottom: 9999px; /* margin box has to stay within the 
containing block */
   height: 9999px; /* ditto */
}

!div > :stuck {
   height: 1px; /* containing block again */
}

Corey
Received on Wednesday, 28 August 2013 14:56:05 UTC

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