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

Re: specifying position:sticky

From: Brad Kemper <brad.kemper@gmail.com>
Date: Sat, 13 Jul 2013 13:49:05 -0700
Cc: "www-style@w3.org" <www-style@w3.org>
Message-Id: <F60F8A0D-D500-4717-88A8-65A8F14CDB96@gmail.com>
To: Corey Ford <cford@mozilla.com>

On Jul 13, 2013, at 12:48 PM, Corey Ford wrote:

> No, the opposite edge of the containing block is what limits the repositioning. To take a concrete example, such as sticky-top section headers [1], the headers stay 10px from the top of the viewport until their bottom edge reaches the *bottom* of their containing block, at which point they start scrolling with the document again. (Note that sticky-top only ever moves an element down.)

Ah, OK, I see what you're saying. So the bottom of the container will push the top off the screen once it no longer fits in the container without scrolling them both.

Is there also going to be something like on the iPhone Contacts app aphabetic list headings, where two items with the same sticky positioning will push on each other as their container is scrolled, so that they do not overlap? I hope so, as that is a very useful effect.
Received on Saturday, 13 July 2013 20:49:36 UTC

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