inheritance.html (1235B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>Inheritance of CSS Grid Layout properties</title> 6 <link rel="help" href="https://drafts.csswg.org/css-grid/#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 <script> 18 assert_not_inherited('grid-auto-columns', 'auto', '10px'); 19 assert_not_inherited('grid-auto-flow', 'row', 'column dense'); 20 assert_not_inherited('grid-auto-rows', 'auto', '10px'); 21 assert_not_inherited('grid-column-end', 'auto', 'span 2'); 22 assert_not_inherited('grid-column-start', 'auto', 'span 2'); 23 assert_not_inherited('grid-row-end', 'auto', 'span 2'); 24 assert_not_inherited('grid-row-start', 'auto', 'span 2'); 25 assert_not_inherited('grid-template-areas', 'none', '"one two" "three four"'); 26 assert_not_inherited('grid-template-columns', 'none', '10px'); 27 assert_not_inherited('grid-template-rows', 'none', '10px'); 28 </script> 29 </body> 30 </html>