Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / shapes / shape-outside-floats / shape-outside-image-fit-003.html
blob4391c9916024c7ac1ebfe395f875fc548196e6a1
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <style>
5 /*
6 The object-fit: contain property causes the 10x10 SVG image to be scaled to 100x100 and centered within the image-shape's
7 100x200 bounds.
8 */
9 #image-shape {
10 float: left;
11 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>");
12 width: 100px;
13 height: 200px;
14 object-fit: contain;
17 #content {
18 font: 50px/1 Ahem, sans-serif;
19 color: green;
21 </style>
22 <div id="content">
23 <img id="image-shape"
24 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>"/>
25 X<br>X<br>X<br>X
26 </div>
27 </body>
28 </html>