Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css / object-fit-shrink-expected.html
blobb37d0c7049ccbf23a46941dfd87efee00ef7456e
1 <!DOCTYPE html>
3 <html>
4 <head>
5 <title>object-fit, images larger than content box</title>
6 <style type="text/css">
7 .group > div {
8 display: inline-block;
9 overflow: hidden;
10 height: 72px;
11 width: 72px;
12 margin: 10px;
13 border: 1px solid black;
14 background-color: gray;
16 div > * > * { display:block; }
17 .group.landscape > *:nth-child(1) > * { width:100%; height:100%; }
18 .group.landscape > *:nth-child(2) > * { width:100%; margin-top:25%; }
19 .group.landscape > *:nth-child(3) > * { height:100%; margin-left:-50%; }
20 .group.landscape > *:nth-child(4) > * { width:288px; margin-left:-108px; margin-top:-36px; }
21 .group.landscape > *:nth-child(5) > * { width:100%; margin-top:25%; }
22 .group.portrait > *:nth-child(1) > * { width:100%; height:100%; }
23 .group.portrait > *:nth-child(2) > * { height:100%; margin-left:25%; }
24 .group.portrait > *:nth-child(3) > * { width:100%; margin-top:-50%; }
25 .group.portrait > *:nth-child(4) > * { height:288px; margin-top:-108px; margin-left:-36px; }
26 .group.portrait > *:nth-child(5) > * { height:100%; margin-left:25%; }
27 </style>
28 </head>
29 <body>
31 <!-- Large images, should be scaled down when allowed. -->
32 <div class="group landscape">
33 <div><img src="resources/circles-landscape.png"></div>
34 <div><img src="resources/circles-landscape.png"></div>
35 <div><img src="resources/circles-landscape.png"></div>
36 <div><img src="resources/circles-landscape.png"></div>
37 <div><img src="resources/circles-landscape.png"></div>
38 </div>
40 <br>
42 <div class="group portrait">
43 <div><img src="resources/circles-portrait.png"></div>
44 <div><img src="resources/circles-portrait.png"></div>
45 <div><img src="resources/circles-portrait.png"></div>
46 <div><img src="resources/circles-portrait.png"></div>
47 <div><img src="resources/circles-portrait.png"></div>
48 </div>
50 </body>
51 </html>