| <!DOCTYPE html> |
| <html> |
| <head> |
| <style> |
| #content { |
| font: 50px/1 Ahem, sans-serif; |
| -webkit-font-smoothing: antialiased; |
| color: green; |
| } |
| #image-shape { |
| float: left; |
| -webkit-shape-outside: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='2px' height='2px'><rect width='1' height='1' fill='blue'/></svg>"); |
| -webkit-shape-margin: 500px; |
| margin-right: 50px; |
| margin-bottom: 50px; |
| width: 100px; |
| height: 50px; |
| } |
| </style> |
| </head> |
| <body> |
| <p>The shape-outside in this test is a 2x2 image with only the upper left pixel set. The shape |
| element's margin-box is and the the shape-margin is big enough (is greater than 150 * sqrt(2)) |
| so that the shape-margin boundary extends beyond the margin-box's bounds. The shape-outside boundary |
| is clipped to the margin-box, so it's as if the shape-outside was equal to the margin-box.</p> |
| <div id="content"> |
| <div id="image-shape"></div> |
| X<br>X |
| </div> |
| </body> |
| </html> |