summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/css/object-position-with-fit-none.html
blob: c21d51e6bceec8f7bbe8473f83c110eaec6ae994 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<!DOCTYPE html>

<html>
    <head>
        <title>object-position on images with object-fit:none and smaller images</title>
        <style type="text/css">
            img {
                width: 100px;
                height: 100px;
                margin: 2px 10px;
                border: 1px solid black;
                padding: 5px;
                background-color: gray;
            }

            .group > * { object-fit: none; }
            .group { object-position: 30px 30px; }
            .group > *:nth-child(1) { object-position: right top; }
            .group > *:nth-child(2) { object-position: left bottom; }
            .group > *:nth-child(3) { object-position: 10px 125%; }
            .group > *:nth-child(4) { object-position: 200%; }
            .group > *:nth-child(5) { object-position: -100%; }
            .group > *:nth-child(6) { object-position: -25% -10px; }
            .group > *:nth-child(7) { object-position: 72px 0px; }
            .group > *:nth-child(8) { object-position: 0px 72px; }
            .group > *:nth-child(9) { object-position: -72px 0px; }
            .group > *:nth-child(10) { object-position: 0px -72px; }
            .group > *:nth-child(11) { object-position: inherit; }
            .group > *:nth-child(12) { object-position: left 20px center; }
            .group > *:nth-child(13) { object-position: center bottom 25%; }
            .group > *:nth-child(14) { object-position: bottom 20px right 12px; }
            .group > *:nth-child(15) { }
        </style>
    </head>
    <body>

        <div class="group">
            <img src="resources/circles-landscape-small.png">
            <img src="resources/circles-landscape-small.png">
            <img src="resources/circles-landscape-small.png">
            <img src="resources/circles-landscape-small.png">
            <img src="resources/circles-landscape-small.png">
            <img src="resources/circles-landscape-small.png">
            <img src="resources/circles-landscape-small.png">
            <img src="resources/circles-landscape-small.png">
            <img src="resources/circles-landscape-small.png">
            <img src="resources/circles-landscape-small.png">
            <img src="resources/circles-landscape-small.png">
            <img src="resources/circles-landscape-small.png">
            <img src="resources/circles-landscape-small.png">
            <img src="resources/circles-landscape-small.png">
            <img src="resources/circles-landscape-small.png">
        </div>

    </body>
</html>