background-clip-computed.html (936B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>CSS Backgrounds and Borders: getComputedStyle().backgroundClip</title> 6 <link rel="help" href="https://drafts.csswg.org/css-backgrounds/#background-clip"> 7 <meta name="assert" content="background-clip computed value is as specified."> 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 <div id="target"></div> 14 <script> 15 test_computed_value("background-clip", "border-box"); 16 test_computed_value("background-clip", "padding-box"); 17 test_computed_value("background-clip", "content-box"); 18 test_computed_value("background-clip", "border-area"); 19 20 // See background-computed.html for a test with multiple background images. 21 test_computed_value("background-clip", "border-box, padding-box, content-box, border-area", "border-box"); 22 </script> 23 </body> 24 </html>