inheritance.html (1699B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>Inheritance of CSS Text properties</title> 6 <link rel="help" href="https://www.w3.org/TR/css-text/#property-index"> 7 <meta name="assert" content="Properties inherit 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_inherited('hanging-punctuation', 'none', 'first last'); 19 assert_inherited('hyphens', 'manual', 'none'); 20 assert_inherited('letter-spacing', 'normal', '10px', '10%'); 21 assert_inherited('line-break', 'auto', 'strict'); 22 assert_inherited('overflow-wrap', 'normal', 'break-word'); 23 assert_inherited('tab-size', '8', '10px'); 24 assert_inherited('text-align', 'start', 'right'); 25 assert_inherited('text-align-all', 'start', 'right'); 26 assert_inherited('text-align-last', 'auto', 'right'); 27 assert_inherited('text-indent', '0px', '10px'); 28 assert_inherited('text-justify', 'auto', 'inter-character'); 29 assert_inherited('text-transform', 'none', 'uppercase'); 30 assert_inherited('text-wrap', 'wrap', 'nowrap'); 31 assert_inherited('text-wrap-mode', 'wrap', 'nowrap'); 32 assert_inherited('text-wrap-style', 'auto', 'balance'); 33 assert_inherited('white-space', 'normal', 'pre-wrap'); 34 assert_inherited('white-space-collapse', 'collapse', 'preserve'); 35 assert_inherited('word-break', 'normal', 'break-all'); 36 assert_inherited('word-spacing', '0px', '10px', '10%'); 37 assert_inherited('word-wrap', 'normal', 'break-word'); 38 </script> 39 </body> 40 </html>