polygon-function-valid.html (822B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>CSS Shapes Module Level 1: parsing the polygon() function</title> 6 <link rel="help" href="https://drafts.csswg.org/css-shapes-1/#funcdef-basic-shape-polygon"> 7 <meta name="assert" content="Tests parsing of the polygon() function"> 8 <script src="/resources/testharness.js"></script> 9 <script src="/resources/testharnessreport.js"></script> 10 <script src="/css/support/parsing-testcommon.js"></script> 11 </head> 12 <body> 13 <script> 14 test_valid_value("shape-outside", "polygon(1% 2%)"); 15 test_valid_value("shape-outside", "polygon(calc(100% - 20px) calc(30% + 10px))"); 16 test_valid_value("shape-outside", "polygon(nonzero, 1px 2px, 3em 4em)", "polygon(1px 2px, 3em 4em)"); 17 test_valid_value("shape-outside", "polygon(evenodd, 1px 2px, 3em 4em, 5pt 6%)"); 18 </script> 19 </body> 20 </html>