inheritance-001.html (946B)
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 </head> 13 <body> 14 <div id="container"> 15 <div id="target"></div> 16 </div> 17 <style> 18 #container { 19 display: grid; 20 } 21 </style> 22 <script> 23 assert_not_inherited('box-sizing', 'content-box', 'border-box'); 24 assert_not_inherited('max-height', 'none', '10px'); 25 assert_not_inherited('max-width', 'none', '10px'); 26 assert_not_inherited('min-height', 'auto', '10px'); 27 assert_not_inherited('min-width', 'auto', '10px'); 28 </script> 29 </body> 30 </html>