Skip to content
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

[css-contain] Position in painting order #3063

Closed
frivoal opened this issue Aug 29, 2018 · 2 comments
Closed

[css-contain] Position in painting order #3063

frivoal opened this issue Aug 29, 2018 · 2 comments
Assignees

Comments

@frivoal
Copy link
Collaborator

frivoal commented Aug 29, 2018

layout and paint containment cause the element to establish a stacking context. Where in the painting order does that go?

I believe the normative description for this is https://www.w3.org/TR/CSS22/zindex.html, and that seems to say that the element stays wherever it would otherwise be: just becoming a stacking context doesn't change its place in the painting order, it only affects the painting order of its descendants.

However, I believe that that was written when the only thing that could create stacking contexts was positioned elements, so there may be some shortcuts taken in that description, and maybe the intent would be that all things which create a stacking context, including elements with containment, get the same position in painting order as if they were positioned elements with z-index: auto.

I don't think I understand stacking contexts well enough to answer than myself.

@tabatkins
Copy link
Member

I think this is actually a duplicate of #2717

@frivoal
Copy link
Collaborator Author

frivoal commented Aug 29, 2018

Yes, it is. I had the feeling I'd seen this before, but I my searchfu was weak today and I couldn't find that issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants