Replies: 1 comment 2 replies
-
An |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I recently needed to create a new stacking context, to avoid problems created by the interaction between a
.z-10
element and a later.absolute
element. I reached first for a.transform
wrapper, which does the trick, but thought I'd go read about stacking contexts (again). I learned aboutisolation: isolate;
, which seems purpose built for this case. Does it have good enough browser support to be a utility?Here's a pared down demonstration of the problem. I don't want the part of the
.z-10
text that is "under" the menu to appear, but it does.Creating a stacking context fixes the problem:
If there's a better solution, I'd be interested to hear.
Beta Was this translation helpful? Give feedback.
All reactions