New issue
Advanced search Search tips

Issue 695055 link

Starred by 1 user

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

Position sticky should not establish a stacking context.

Project Member Reported by flackr@chromium.org, Feb 22 2017

Issue description

Fixed position is explicitly called out in the W3C visual formatting model editor's draft as establishing a stacking context:
https://drafts.csswg.org/css2/visuren.html#z-index

Inadvertently we ended up considering position: sticky the same as position fixed when stuck to the viewport, but unless it also has a z-index specified it seems that it should not create a stacking context.

See http://output.jsbin.com/yucorey where the green box should be on top of the red box.
 

Comment 1 by flackr@chromium.org, Feb 22 2017

https://github.com/w3c/csswg-drafts/issues/1053 was created to propose changing this.

Sign in to add a comment