text-indent-computed.html (1188B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>CSS Text: getComputedStyle().textIndent</title> 6 <link rel="help" href="https://www.w3.org/TR/css-text-3/#propdef-text-indent"> 7 <meta name="assert" content="text-indent computed value is computed <length-percentage> value, plus any specified keywords."> 8 <script src="/resources/testharness.js"></script> 9 <script src="/resources/testharnessreport.js"></script> 10 <script src="/css/support/computed-testcommon.js"></script> 11 <style> 12 #target { 13 font-size: 40px; 14 } 15 </style> 16 </head> 17 <body> 18 <div id="target"></div> 19 <script> 20 test_computed_value("text-indent", "10px"); 21 test_computed_value("text-indent", "20%"); 22 test_computed_value("text-indent", "calc(50% + 60px)"); 23 test_computed_value("text-indent", "-30px"); 24 test_computed_value("text-indent", "-40%"); 25 test_computed_value("text-indent", "calc(10px - 0.5em)", "-10px"); 26 27 test_computed_value("text-indent", "10px hanging"); 28 test_computed_value("text-indent", "20% each-line"); 29 test_computed_value("text-indent", "calc(50% + 60px) hanging each-line"); 30 test_computed_value("text-indent", "each-line hanging calc(10px + 0.5em)", "30px hanging each-line"); 31 </script> 32 </body> 33 </html>