summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/gradients/border-image-gradient-sides-and-corners.html
blob: fff3963e87f439f844cc363f0d0b27e2b4577581 (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
<html>
<head>
    <style>
        div {
            background-color: blue;
            border: 25px solid black;
            width: 50px;
            height: 50px;
            margin: 10px;
        }
        
        .cornersOnly {
            -webkit-border-image: -webkit-gradient(linear, left top, left bottom, from(#00abeb), to(#fff), color-stop(0.5, #fff), color-stop(0.5, #66cc00)) 50 50 50 50 repeat repeat;
        }
        
        .horizontalOnly {
            -webkit-border-image: -webkit-gradient(linear, left top, left bottom, from(#00abeb), to(#fff), color-stop(0.5, #fff), color-stop(0.5, #66cc00)) 50 25 50 25 repeat repeat;
        }
        
        .verticalOnly {
            -webkit-border-image: -webkit-gradient(linear, left top, left bottom, from(#00abeb), to(#fff), color-stop(0.5, #fff), color-stop(0.5, #66cc00)) 25 50 25 50 stretch stretch;
        }
    </style>
</head>
<body>
    <div class="cornersOnly"></div>
    <div class="horizontalOnly"></div>
    <div class="verticalOnly"></div>
</body>
</html>