OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 4 <title>CSS Test: left float, inset + shape-margin, % units</title> |
| 5 </head> |
| 6 <style> |
| 7 #container { |
| 8 position: absolute; |
| 9 left: 25px; |
| 10 width: 200px; |
| 11 height: 200px; |
| 12 font-family: Ahem; |
| 13 font-size: 20px; |
| 14 background-color: red; |
| 15 color: green; |
| 16 } |
| 17 #test-shape { |
| 18 float: left; |
| 19 width: 200px; |
| 20 height: 200px; |
| 21 -webkit-shape-margin: 10%; |
| 22 -webkit-shape-outside: inset(40px 100px 40px 0px); |
| 23 } |
| 24 #static-shape { |
| 25 position: absolute; |
| 26 left: 25px; |
| 27 width: 100px; |
| 28 height: 120px; |
| 29 top: 70px; |
| 30 border: 20px solid green; |
| 31 background-color: green; |
| 32 } |
| 33 </style> |
| 34 <body> |
| 35 <p>The test passes if there is a green square and no red.</p> |
| 36 <div id="container"> |
| 37 <div id="test-shape"></div> |
| 38 XXXXXXXXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXXXXXXXX |
| 39 </div> |
| 40 <div id="static-shape"></div> |
| 41 </body> |
| 42 </html> |
OLD | NEW |