OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 4 <title>CSS Test: left float, inset, % units</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-inset"
> |
| 7 <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#shape-outside-
property"> |
| 8 <link rel="match" href="reference/shape-outside-inset-010-ref.html"/> |
| 9 <meta name="flags" content="ahem" /> |
| 10 <meta name="assert" content="The test verfies that text flows around a |
| 11 left float with a shape-outside defined as |
| 12 an inset rectangle in percentage units."> |
| 13 </head> |
| 14 <style> |
| 15 #container { |
| 16 position: relative; |
| 17 margin-left: 25px; |
| 18 } |
| 19 #test-container { |
| 20 width: 200px; |
| 21 height: 200px; |
| 22 font-family: Ahem; |
| 23 font-size: 25px; |
| 24 background-color: red; |
| 25 color: green; |
| 26 } |
| 27 #test-shape { |
| 28 float: left; |
| 29 width: 200px; |
| 30 height: 200px; |
| 31 shape-outside: inset(25% 50% 25% 0%); |
| 32 } |
| 33 #static-shape { |
| 34 position: absolute; |
| 35 left: 0px; |
| 36 width: 100px; |
| 37 height: 100px; |
| 38 top: 50px; |
| 39 background-color: green; |
| 40 } |
| 41 </style> |
| 42 <body> |
| 43 <p>The test passes if there is a green square and no red.</p> |
| 44 <div id="container"> |
| 45 <div id="test-container"> |
| 46 <div id="test-shape"></div> |
| 47 XXXXXXXX XXXXXXXX XXXX XXXX XXXX XXXX XXXXXXXX XXXXXXXX |
| 48 </div> |
| 49 <div id="static-shape"></div> |
| 50 </div> |
| 51 </body> |
| 52 </html> |
OLD | NEW |