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