shape-outside-invalid-inset-003.html (1072B)
1 <!doctype html> 2 <html> 3 <head> 4 <meta charset="UTF-8"> 5 <meta name="flags" content="dom"> 6 <meta name="assert" content="shape-outside declaration is invalid if inset shape function has an invalid bottom param"> 7 <title>CSS Shapes Test: Inset Rectangles - invalid bottom arg</title> 8 <link rel="author" title="Sherlock Zhong" href="mailto:sherlock.z0917@gmail.com"> 9 <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#supported-basic-shapes"> 10 <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#funcdef-inset"> 11 <script src="/resources/testharness.js"></script> 12 <script src="/resources/testharnessreport.js"></script> 13 <style> 14 #shape{ 15 width: 300px; 16 height: 300px; 17 shape-outside: inset(50px 50px 50 50px); 18 } 19 </style> 20 </head> 21 <body> 22 23 <div id="log"></div> 24 25 <div id="shape"></div> 26 27 <script> 28 var obj = document.getElementById('shape'); 29 var val = getComputedStyle(obj).shapeOutside; 30 test(function() {assert_equals(val, "none", "declaration should not be valid")}); 31 </script> 32 33 </body> 34 </html>