border-image-outset-computed.html (1258B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>CSS Backgrounds and Borders: getComputedStyle().borderImageOutset</title> 6 <link rel="help" href="https://drafts.csswg.org/css-backgrounds/#border-image-outset"> 7 <meta name="assert" content="border-image-outset computed value is four values, each a number or 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 font-size: 40px; 14 container-type: inline-size; 15 width: 100px; 16 } 17 </style> 18 </head> 19 <body> 20 <div id="container"> 21 <div id="target"></div> 22 </div> 23 <script> 24 test_computed_value("border-image-outset", "1px"); 25 test_computed_value("border-image-outset", "1px 2"); 26 test_computed_value("border-image-outset", "1px 2 3px"); 27 test_computed_value("border-image-outset", "1px 2 3px 4"); 28 test_computed_value("border-image-outset", "0 calc(0.5em + 10px) 3 calc(-0.5em + 10px)", "0 30px 3 0px"); 29 test_computed_value("border-image-outset", "calc(10 + (sign(2cqw - 10px) * 5))", "5"); 30 test_computed_value("border-image-outset", "calc(10 + (sign(2cqw - 10px) * 5)) calc(20px + (sign(2cqw - 10px) * 5px)", "5 15px"); 31 </script> 32 </body> 33 </html>