clip-computed.html (855B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>CSS Masking Module Level 1: getComputedStyle().clip</title> 6 <link rel="help" href="https://drafts.fxtf.org/css-masking-1/#clip-property"> 7 <meta name="assert" content="clip computed value is as specified, with lengths made absolute."> 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("clip", "auto"); 21 test_computed_value("clip", "rect(10px, 20px, -30px, 40px)"); 22 test_computed_value("clip", "rect(10px, 20px, calc(-1em + 10px), 1em)", "rect(10px, 20px, -30px, 40px)"); 23 test_computed_value("clip", "rect(10px, -20px, auto, auto)"); 24 </script> 25 </body> 26 </html>