Re: [css-position]: Sticky Positioning: Siblings should overlap

On Wed, Dec 30, 2015 at 10:29 AM, Axel Dahmen <brille1@hotmail.com> wrote:
>> From my observation, sticky positioning will mainly be used as bread
>> crumbs
>
> for displaying header sections in HTML documents.
>
> I couldn't find the corresponding behaviour described in the specification
> (https://drafts.csswg.org/css-position/#sticky-pos) that's why I'd like to
> suggest the following behaviour to be considered for the specification:
>
> Sibling sticky positioned elements should overlap.

This only does what you want if all the stickies are (1) opaque, and
(2) the same height (or at least non-decreasing in height).

If either of these are violated, you'll see remnants of the previous
stickies underneath the "current" one, and that's terrible.

What we really need for this use-case is a way to group sticky things,
so that they'll push previous stickies in the same group out of the
way when they begin sticking.

~TJ

Received on Monday, 4 January 2016 18:02:36 UTC