| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <head> | 2 <head> |
| 3 <meta charset="utf-8"> | 3 <meta charset="utf-8"> |
| 4 <title>CSS Shapes Tests: Circle - invalid r values</title> | 4 <title>CSS Shapes Tests: Circle - invalid r values</title> |
| 5 <link rel="author" title="biqing" href="biqing.kwok@qq.com"> | 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"> | 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"> | 7 <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#funcdef-circle"> |
| 8 <script src="../../../resources/testharness.js"></script> | 8 <script src="/resources/testharness.js"></script> |
| 9 <script src="../../../resources/testharnessreport.js"></script> | 9 <script src="/resources/testharnessreport.js"></script> |
| 10 <link rel="stylesheet" href="../../../resources/testharness.css"> | 10 <link rel="stylesheet" href="/resources/testharness.css"> |
| 11 <meta name="flags" content="dom"> | 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"> | 12 <meta name="assert" content="shape-outside declaration is invalid if circle
shape function has an invalid r parameter"> |
| 13 <style type="text/css"> | 13 <style type="text/css"> |
| 14 .circle { | 14 .circle { |
| 15 float: left; | 15 float: left; |
| 16 width: 100px; | 16 width: 100px; |
| 17 height: 100px; | 17 height: 100px; |
| 18 } | 18 } |
| 19 #circle1 { | 19 #circle1 { |
| 20 shape-outside: circle(auto); | 20 shape-outside: circle(auto); |
| (...skipping 17 matching lines...) Expand all Loading... |
| 38 | 38 |
| 39 test(function() { | 39 test(function() { |
| 40 assert_true(getComputedStyle(document.getElementById('circle1')).shapeOu
tside == 'none'); | 40 assert_true(getComputedStyle(document.getElementById('circle1')).shapeOu
tside == 'none'); |
| 41 assert_true(getComputedStyle(document.getElementById('circle2')).shapeOu
tside == 'none'); | 41 assert_true(getComputedStyle(document.getElementById('circle2')).shapeOu
tside == 'none'); |
| 42 assert_true(getComputedStyle(document.getElementById('circle3')).shapeOu
tside == 'none'); | 42 assert_true(getComputedStyle(document.getElementById('circle3')).shapeOu
tside == 'none'); |
| 43 }, 'Circle - invalid r values'); | 43 }, 'Circle - invalid r values'); |
| 44 | 44 |
| 45 </script> | 45 </script> |
| 46 </body> | 46 </body> |
| 47 </html> | 47 </html> |
| OLD | NEW |