Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / shapes / shape-outside-floats / shape-outside-image-fit-004.html
bloba5ede55d3dd4e2c585e42c46d097d87968e356ac
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <style>
5 /*
6 The object-fit:cover property causes the image to be scaled to 200x200 and then centered. The shape-outside
7 is clipped to the image-shape's margin-box, which means that the Ahem text will appear 50 pixels to the right
8 of the IMG element.
9 */
10 #image-shape {
11 float: left;
12 shape-outside: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10px' height='10px'><rect width='10' height='10' fill='blue'/></svg>");
13 width: 100px;
14 height: 200px;
15 object-fit: cover;
16 margin-right: 300px;
19 #content {
20 font: 50px/1 Ahem, sans-serif;
21 color: green;
23 </style>
24 <div id="content">
25 <img id="image-shape"
26 src="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10px' height='10px'><rect width='10' height='10' fill='blue'/></svg>"/>
27 X<br>X<br>X<br>X<br>X
28 </div>
29 </body>
30 </html>