-
Notifications
You must be signed in to change notification settings - Fork 671
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[css3-positioning] position:sticky should create a stacking context #1053
Comments
+1 I've hit this in practice today and have no workaround |
Does this mean position: fixed will start creating a stacking context even without the use of z-index? Is that in the current working draft? |
@keithjgrant The working group resolved to have position:fixed create a stacking context in their 2015-07-01 meeting. While it was left out of subsequent spec revisions on accident, it was added in on 2016-11-18. See #451 (comment) for more info. tl;dr Yes, position:fixed already creates a stacking context even without the use of z-index. |
I believe that @tabatkins's reasoning in the related issue and the fact that Edge managed to implement @smfr, could you please clarify what is the most difficult problem of implementing |
@smfr Any new thoughts on this before adoption makes it too late and interop causes standards to resolve on a possibly subpar decision? Especially since @tabatkins and @FremyCompany weighed in on current language sufficing? Even more important while #2717 is consolidating how/if stacking contexts automatically sort in z space? |
Chromium already treats both position: fixed and position: sticky as stacking contexts. The reason that such elements are stacking contexts is that they need to move with respect to scroll, and in particular composited scrolling layers. Therefore they are put in their own composited layer, and |
I think the next step is to file an issue with edge and create wpt tests. And edit the spec to agree with behavior on the other browsers. |
Edge no longer exists as a different browser. The spec needs to be edited to make position:sticky a stacking context and a WPT test added. @tabatkins |
Was this resolved? Does |
Agenda+ to confirm that stickypos should create a stacking context just like fixpos does, for the reasoning given by @chrishtr in #1053 (comment) |
We should remember to republish css-position-3 (and css-align-3, which is inter-dependent with its updates) after the CSSWG resolution here, it's the only significant thing blocking republication. |
The CSS Working Group just discussed
The full IRC log of that discussion<TabAtkins> fantasai: Simon raised an issue a while ago that stickypos should make as tacking context, like fixpos<Rossen_> q? <TabAtkins> Rossen_: Is there a reason it's not already a stacking context? <TabAtkins> smfr: WebKit's been shipping that way for a long time <fantasai> TabAtkins: previously, wasn't necessary <fantasai> TabAtkins: but now in chromium it is <fantasai> TabAtkins: wanted to check that we're okay with the change to the spec <TabAtkins> Oh sorry, stickypos stacking context isn't in the spec; fixpos is. So we will still need to make an edit. <TabAtkins> Rossen_: Objections? <TabAtkins> RESOLVED: stickypos makes a stacking context, just like fixpos |
I think position:sticky should create a stacking context, as we have resolved to do for position:fixed.
The text was updated successfully, but these errors were encountered: