tab-size-computed.html (1197B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>CSS Text: getComputedStyle().tabSize</title> 6 <link rel="help" href="https://www.w3.org/TR/css-text-3/#propdef-tab-size"> 7 <meta name="assert" content="tab-size computed value is the specified number or an absolute length."> 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 #container { 13 container-type: inline-size; 14 width: 100px; 15 } 16 #target { 17 font-size: 40px; 18 } 19 </style> 20 </head> 21 <body> 22 <div id="container"> 23 <div id="target"></div> 24 </div> 25 <script> 26 test_computed_value("tab-size", "0"); 27 test_computed_value("tab-size", "16"); 28 test_computed_value("tab-size", "4"); 29 test_computed_value("tab-size", "2.5"); 30 test_computed_value("tab-size", 'calc(10 + (sign(2cqw - 10px) * 5))', '5'); 31 32 test_computed_value("tab-size", "0px"); 33 test_computed_value("tab-size", "10px"); 34 test_computed_value("tab-size", "calc(10px + 0.5em)", "30px"); 35 test_computed_value("tab-size", "calc(10px - 0.5em)", "0px"); 36 test_computed_value("tab-size", 'calc(10px + (sign(2cqw - 10px) * 5px))', '5px'); 37 </script> 38 </body> 39 </html>