Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / shapes / shape-outside-floats / shape-outside-image-fit-005.html
blob36c558a0a300e40871230b6e4362dc711f9d4daf
1 <html>
2 <head>
3 <style>
4 /*
5 The aspect-ratio preserving object-fit:cover property causes the 10x100 image to be scaled to 100x1000 and then centered.
6 The shape-outside is clipped to the image-shape's margin-box, which means that most of the scaled image will be clipped away.
7 */
8 #image-shape {
9 float: left;
10 shape-outside: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10px' height='100px'><rect width='10' height='100' fill='blue'/></svg>");
11 width: 100px;
12 height: 200px;
13 margin-right: 50px; /* expose shape-outside property failures */
14 object-fit: cover;
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='100px'><rect width='10' height='100' fill='blue'/></svg>">
25 </img>
26 X<br>X<br>X<br>X<br>X
27 </div>
28 </body>
29 </html>