OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <head> |
| 3 <meta charset="utf-8"> |
| 4 <title>CSS Shapes Tests: Circle - invalid r values</title> |
| 5 <link rel="author" title="biqing" href="biqing.kwok@qq.com"> |
| 6 <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#supported-basic-sh
apes"> |
| 7 <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#funcdef-circle"> |
| 8 <script src="../../../resources/testharness.js"></script> |
| 9 <script src="../../../resources/testharnessreport.js"></script> |
| 10 <link rel="stylesheet" href="../../../resources/testharness.css"> |
| 11 <meta name="flags" content="dom"> |
| 12 <meta name="assert" content="shape-outside declaration is invalid if circle
shape function has an invalid r parameter"> |
| 13 <style type="text/css"> |
| 14 .circle { |
| 15 float: left; |
| 16 width: 100px; |
| 17 height: 100px; |
| 18 } |
| 19 #circle1 { |
| 20 shape-outside: circle(auto); |
| 21 } |
| 22 #circle2 { |
| 23 shape-outside: circle(inherit); |
| 24 } |
| 25 #circle3 { |
| 26 shape-outside: circle(#FFFFFF); |
| 27 } |
| 28 </style> |
| 29 </head> |
| 30 <body> |
| 31 <div id="log"></div> |
| 32 |
| 33 <div class="circle" id="circle1"></div> |
| 34 <div class="circle" id="circle2"></div> |
| 35 <div class="circle" id="circle3"></div> |
| 36 |
| 37 <script> |
| 38 |
| 39 test(function() { |
| 40 assert_true(getComputedStyle(document.getElementById('circle1')).shapeOu
tside == 'none'); |
| 41 assert_true(getComputedStyle(document.getElementById('circle2')).shapeOu
tside == 'none'); |
| 42 assert_true(getComputedStyle(document.getElementById('circle3')).shapeOu
tside == 'none'); |
| 43 }, 'Circle - invalid r values'); |
| 44 |
| 45 </script> |
| 46 </body> |
| 47 </html> |
OLD | NEW |