inheritance.html (982B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>Inheritance of CSS Positioned Layout properties</title> 6 <link rel="help" href="https://drafts.csswg.org/css-position/#property-index"> 7 <meta name="assert" content="Properties inherit or not according to the spec."> 8 <meta name="assert" content="Properties have initial values according to the spec."> 9 <script src="/resources/testharness.js"></script> 10 <script src="/resources/testharnessreport.js"></script> 11 <script src="/css/support/inheritance-testcommon.js"></script> 12 </head> 13 <body> 14 <div id="container"> 15 <div id="target"></div> 16 </div> 17 <style> 18 #container, #target { 19 position: sticky; 20 } 21 </style> 22 <script> 23 assert_not_inherited('position', 'static', 'absolute'); 24 assert_not_inherited('top', 'auto', '10px'); 25 assert_not_inherited('right', 'auto', '10px'); 26 assert_not_inherited('bottom', 'auto', '10px'); 27 assert_not_inherited('left', 'auto', '10px'); 28 assert_not_inherited('z-index', 'auto', '123'); 29 </script> 30 </body> 31 </html>