ellipse-function-computed.html (1836B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>CSS Shapes Module Level 1: the computed value of the ellipse() function</title> 6 <link rel="help" href="https://drafts.csswg.org/css-shapes-1/#funcdef-basic-shape-ellipse"> 7 <meta name="assert" content="Tests parsing of the ellipse() function"> 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("shape-outside", "ellipse()"); 16 test_computed_value("shape-outside", "ellipse(1px 2px)"); 17 test_computed_value("shape-outside", "ellipse(20px 40px at center)", "ellipse(20px 40px at 50% 50%)"); 18 test_computed_value("shape-outside", "ellipse(closest-side 20%)"); 19 test_computed_value("shape-outside", "ellipse(farthest-side 20%)"); 20 test_computed_value("shape-outside", "ellipse(closest-corner 20%)"); 21 test_computed_value("shape-outside", "ellipse(farthest-corner 20%)"); 22 test_computed_value("shape-outside", "ellipse(at 10% 20%)"); 23 test_computed_value("shape-outside", "ellipse(at -10px -20%)"); 24 test_computed_value("shape-outside", "ellipse(4% 20% at top right)", "ellipse(4% 20% at 100% 0%)"); 25 test_computed_value("shape-outside", "ellipse(calc(100% - 20px) calc(80% - 10px) at calc(100% - 20px) calc(100% / 4))", "ellipse(calc(100% - 20px) calc(80% - 10px) at calc(100% - 20px) 25%)"); 26 27 test_computed_value("shape-outside", "ellipse(10px closest-side at top right)", "ellipse(10px closest-side at 100% 0%)"); 28 test_computed_value("shape-outside", "ellipse(farthest-side 20px at center top)", "ellipse(farthest-side 20px at 50% 0%)"); 29 test_computed_value("shape-outside", "ellipse(farthest-side farthest-side at top right)", "ellipse(farthest-side farthest-side at 100% 0%)"); 30 </script> 31 </body> 32 </html>