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

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