z-index-positioned-computed.html (728B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>CSS Positioned Layout Module Level 3: getComputedStyle().zIndex</title> 6 <link rel="help" href="https://drafts.csswg.org/css-position/#propdef-z-index"> 7 <meta name="assert" content="z-index computed value is the keyword auto or an integer."> 8 <script src="/resources/testharness.js"></script> 9 <script src="/resources/testharnessreport.js"></script> 10 <script src="/css/support/computed-testcommon.js"></script> 11 </head> 12 <body> 13 <div id="target"></div> 14 <style> 15 #target { 16 position: absolute; 17 } 18 </style> 19 <script> 20 test_computed_value("z-index", "auto"); 21 test_computed_value("z-index", "-1"); 22 test_computed_value("z-index", "calc(3 - 2)", "1"); 23 </script> 24 </body> 25 </html>