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 07:52:51 -0700
Message-Id: <A7875152-3543-4056-8626-5A8D33ACBF5F@gmail.com>
Cc: "www-style@w3.org" <www-style@w3.org>
To: Corey Ford <cford@mozilla.com>
On Jul 12, 2013, at 9:37 AM, Corey Ford <cford@mozilla.com> 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 paddingedge of its scrolling container, the box is repositioned to that distance from the edge, such that the box doesnot move while the container scrolls. The distance the box is repositioned is limited such that the element's margin box never crosses the oppositeedge of the content box of its containing block,

Given that negative margins can already cause any element's edge to extend beyond the padding edge, I think we should refer to the "margin box" or "margin box edge" in more places, instead of just "the box". Also, is "opposite edge" correct in that last sentence, above? Seems to me it should be "corresponding edge", so that, e.g. if 'top' is non-auto, the top edge of the element's margin box never crosses the top of the top edge of its containing block's content box. The opposite edge would be the bottom, which shouldn't matter to the non-auto 'top' value. So, perhaps something like this:

#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 with its corresponding margin box edge at that distance from that edge, such that the box does not move while the container scrolls. The distance the box is repositioned is limited such that the element's margin box never crosses the corresponding edge of the content box of its containing block,
Received on Saturday, 13 July 2013 14:53:26 UTC

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