Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / shapes / shape-outside-floats / shape-outside-image-fit-006.html
blob5604e121de84249897212f2c6ca1a51973fdd9ae
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 object-fit: cover;
14 margin-right: 50px; /* expose shape-outside property failures */
15 margin-top: 50px; /* expose 100x50 strips of the shape above and below the SVG image */
16 margin-bottom: 50px;
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='100px'><rect width='10' height='100' fill='blue'/></svg>">
27 </img>
28 X<br>X<br>X<br>X<br>X<br>X<br>X
29 </div>
30 </body>
31 </html>