inheritance-002.html (868B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>Inheritance of CSS Intrinsic & Extrinsic Sizing properties</title> 6 <link rel="help" href="https://drafts.csswg.org/css-sizing-3/#property-index"> 7 <meta name="assert" content="Properties do not inherit."> 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 <style> 13 #target { 14 position: absolute; 15 } 16 </style> 17 </head> 18 <body> 19 <div id="container"> 20 <div id="target"></div> 21 </div> 22 <script> 23 // Without position absolute, the initial value 24 // 'auto' gives the size of the parent element. 25 assert_not_inherited('height', '0px', '10px'); 26 assert_not_inherited('width', '0px', '10px'); 27 </script> 28 </body> 29 </html>