summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-backgrounds/border-image-slice-percentage.html
blob: f53501c9df1099b7571adfdb5c0126dd9e2502a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!DOCTYPE html>
<html>
<head>
    <title>CSS Backgrounds and Borders Test: 'border-image-slice' set by percentage</title>
    <link rel="author" title="Ren Jing" href="mailto:reni2046@gmail.com">
    <link rel="help" href="http://www.w3.org/TR/css3-background/#border-images">
    <link rel="match" href="reference/border-image-repeat-round-ref.html">
    <meta name="assert" content="diamonds in corners should be red, and other diamonds should be orange, it should be 4 orange diamonds on each side.">
    <meta name="fuzzy" content="maxDifference=0-164; totalPixels=0-3716">
    <style type="text/css">
        .container {
            border: double red 1em;
            border-image: url("support/border.png") 33.33333% round;
            height: 64px;
            width: 64px;
        }
    </style>
</head>
<body>
    <p>The test passes if diamonds in corners are red, and other diamonds are orange, there are 4 orange diamonds on each side.</p>
    <div class="container"></div>
</body>
</html>