OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 4 <title>CSS Test: left float, ellipse radii in px</title> |
| 5 <link rel="author" title="Rebecca Hauck" href="mailto:rhauck@adobe.com"> |
| 6 <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#funcdef-ellips
e"> |
| 7 <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#shape-outside-
property"> |
| 8 <link rel="match" href="reference/shape-outside-ellipse-030-ref.html"> |
| 9 <meta name="flags" content="ahem dom" /> |
| 10 <meta name="assert" content="The test verifies that text wraps around a |
| 11 left float with a shape-outside defined as |
| 12 an ellipse with radii in px units."> |
| 13 </head> |
| 14 <style> |
| 15 body { |
| 16 margin: 0; |
| 17 } |
| 18 .container { |
| 19 font: 15px Ahem, sans-serif; |
| 20 line-height: 20px; |
| 21 width: 400px; |
| 22 height: 200px; |
| 23 color: green; |
| 24 } |
| 25 .ellipse { |
| 26 width: 160px; |
| 27 height: 160px; |
| 28 shape-outside: ellipse(80px 40px at 80px 40px); |
| 29 } |
| 30 </style> |
| 31 <body> |
| 32 <p>The test passes if all of the squares are green. There should be no red.<
/p> |
| 33 <div class="container"> |
| 34 X<br/> |
| 35 <div style="float: left" class="ellipse"></div> |
| 36 <span id="test0">X</span><br/> |
| 37 <span id="test1">X</span><br/> |
| 38 <span id="test2">X</span><br/> |
| 39 <span id="test3">X</span><br/> |
| 40 <span id="test4">X |
| 41 </div> |
| 42 <script src="../support/rounded-rectangle.js"></script> |
| 43 <script src="../support/subpixel-utils.js"></script> |
| 44 <script src="../support/test-utils.js"></script> |
| 45 <script> |
| 46 verifyTextPoints({ |
| 47 roundedRect: {x: 0, y: 20, width: 160, height: 80, rx: 80, ry: 4
0}, |
| 48 containerWidth: 200, |
| 49 containerHeight: 200, |
| 50 lineHeight: 20 |
| 51 }, 9); |
| 52 </script> |
| 53 </body> |
| 54 </html> |
| 55 |
OLD | NEW |