Re: specifying position:sticky

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