OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE HTML> | |
2 <html> | |
3 <head> | |
4 <style> | |
5 div { | |
6 width: 10px; | |
7 height: 10px; | |
8 background: green; | |
9 isolation:isolate; | |
10 } | |
11 </style> | |
12 <!-- Isolation should create a stacking context. Test if "isolation:isolate" set s the zIndex to 0, instead of the default "auto" value. --> | |
13 <body> | |
14 <div id="isolator"></div> | |
15 <script src="../../resources/js-test.js"></script> | |
16 <script> | |
17 var zIndex = getComputedStyle(document.getElementById("isolator")).zInde x | |
18 | |
19 shouldBeZero(zIndex); | |
20 </script> | |
21 </body> | |
22 </html> | |
OLD | NEW |