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