OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 4 <title>CSS Test: left float, ellipse radii and position 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-013-ref.html"> |
| 9 <meta name="flags" content="ahem" /> |
| 10 <meta name="assert" content="The test verifies that text wraps around a |
| 11 left float with a shape-outside defined as |
| 12 a ellipse with radii and position in px uni
ts."> |
| 13 </head> |
| 14 <style> |
| 15 body { |
| 16 margin: 0; |
| 17 } |
| 18 #container { |
| 19 position: relative; |
| 20 } |
| 21 #test-container { |
| 22 font: 40px/1 Ahem, sans-serif; |
| 23 width: 300px; |
| 24 height: 200px; |
| 25 color: green; |
| 26 } |
| 27 #test-shape { |
| 28 float: left; |
| 29 width: 140px; |
| 30 height: 140px; |
| 31 margin: 10px; |
| 32 padding: 10px; |
| 33 border: 10px solid transparent; |
| 34 shape-outside: ellipse(80px 40px at 90px 90px); |
| 35 } |
| 36 #line { |
| 37 position: absolute; |
| 38 top: 0px; |
| 39 left: 168px; |
| 40 width: 2px; |
| 41 height: 200px; |
| 42 border-left: 2px solid blue; |
| 43 } |
| 44 #failure { |
| 45 position: absolute; |
| 46 top: 80px; |
| 47 left: 170px; |
| 48 width: 40px; |
| 49 height: 40px; |
| 50 background-color: red; |
| 51 z-index: -1; |
| 52 } |
| 53 </style> |
| 54 <body> |
| 55 <p>The test passes if there is a green square to the right of the blue line.
There should be no red.</p> |
| 56 <div id="container"> |
| 57 <div id="test-container"> |
| 58 <div id="test-shape"></div> |
| 59 <br/> |
| 60 <br/> |
| 61 X |
| 62 </div> |
| 63 <div id="line"></div> |
| 64 <div id="failure"></div> |
| 65 </div> |
| 66 </body> |
| 67 </html> |
OLD | NEW |