зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1707170 - Fix will-change-stacking-context-z-index-1.html.
z-index doesn't apply to non-positioned elements, so will-change: z-index does nothing in that case per spec. MANUAL PUSH: Orange fix CLOSED TREE
This commit is contained in:
Родитель
2d45c54c8f
Коммит
2b15d4a06b
|
@ -10,7 +10,7 @@
|
|||
<style>
|
||||
html, body { margin: 0; padding: 0; }
|
||||
div { width: 100px; height: 100px }
|
||||
#wc { will-change: z-index; background: red }
|
||||
#wc { will-change: z-index; background: red; position: relative }
|
||||
#child { position: absolute; top: 0; left: 0; z-index: -1; background: green }
|
||||
</style>
|
||||
<body>
|
||||
|
|
Загрузка…
Ссылка в новой задаче