outline-offset-computed.html (931B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>CSS UI Level 3: getComputedStyle().outlineOffset</title> 6 <link rel="help" href="https://drafts.csswg.org/css-ui-3/#outline-offset"> 7 <meta name="assert" content="outline-offset computed value is 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 </head> 12 <body> 13 <style> 14 #target { 15 font-size: 40px; 16 } 17 </style> 18 <div id="target"></div> 19 <script> 20 test_computed_value("outline-offset", "2.5px", ["2.5px", "2px"]); // See https://github.com/w3c/csswg-drafts/issues/12906 21 test_computed_value("outline-offset", "10px"); 22 test_computed_value("outline-offset", "0.5em", "20px"); 23 test_computed_value("outline-offset", "calc(10px + 0.5em)", "30px"); 24 test_computed_value("outline-offset", "calc(10px - 0.5em)", "-10px"); 25 </script> 26 </body> 27 </html>