summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-backgrounds/background-position-subpixel-at-border.tentative.html
blob: ad2fa4dc02183b48f76bb8a782e6894704d7b24b (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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<!DOCTYPE html>
<html>
<head>
    <title>CSS Backgrounds: Subpixel positions adjacent to the borders</title>
    <link rel="author" title="Stephen Chenney" href="mailto:schenney@chromium.org">
    <link rel="help" href="https://www.w3.org/TR/css-backgrounds-3/#background-position">
    <link rel="match" href="reference/background-position-subpixel-at-border-ref.tentative.html">
    <style>
        #no-repeat-y-bottom {
            position: absolute;
            top: 200.5px;
            left: 8px;
            width: 150px;
            height: 37.5px;
            border-width: 0px 0px 1.25px;
            border-style: solid;
            border-color: rgba(0,0,0,0.5);
            border-bottom-color: transparent;
            box-sizing: border-box;
            background-color: lightgrey;
            background-image: url("resources/green50x1.png");
            background-position: bottom -1.25px left 0px;
            background-repeat: repeat-x;
            padding: 2.5px 2.5px 1.25px 2.5px;
        }
        #no-repeat-y-top {
            position: absolute;
            top: 160.25px;
            left: 8px;
            width: 150px;
            height: 37.5px;
            border-width: 1.25px 0px 0px 0px;
            border-style: solid;
            border-color: rgba(0,0,0,0.5);
            border-top-color: transparent;
            box-sizing: border-box;
            background-color: lightgrey;
            background-image: url("resources/green50x1.png");
            background-position: top -1.25px left 0px;
            background-repeat: repeat-x;
            padding: 1.25px 2.5px 2.5px 2.5px;
        }
        #no-repeat-x-right {
            position: absolute;
            top: 8px;
            left: 200.5px;
            width: 37.5px;
            height: 150px;
            border-width: 0px 1.25px 0px 0px;
            border-style: solid;
            border-color: rgba(0,0,0,0.5);
            border-right-color: transparent;
            box-sizing: border-box;
            background-color: lightgrey;
            background-image: url("resources/green1x50.png");
            background-position: right -1.25px top 0px;
            background-repeat: repeat-y;
            padding: 2.5px 1.25px 2.5px 2.5px;
        }
        #no-repeat-x-left {
            position: absolute;
            top: 8px;
            left: 160.25px;
            width: 37.5px;
            height: 150px;
            border-width: 0px 0px 0px 1.25px;
            border-style: solid;
            border-color: rgba(0,0,0,0.5);
            border-left-color: transparent;
            box-sizing: border-box;
            background-color: lightgrey;
            background-image: url("resources/green1x50.png");
            background-position: left -1.25px top 0px;
            background-repeat: repeat-y;
            padding: 2.5px 2.5px 2.5px 1.25px;
        }
    </style>
</head>
<body>
        <div id="no-repeat-y-top">
        </div>
        <div id="no-repeat-y-bottom">
        </div>
        <div id="no-repeat-x-right">
        </div>
        <div id="no-repeat-x-left">
        </div>
</body>
</html>