blob: ea2a51381b22db93be0f297796f2d6d5955c3d8a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
<!DOCTYPE html>
<html lang="en-US">
<head>
<title>reference of svg-as-border-image</title>
<style>
div.border {
width: 40px;
height: 40px;
background-color: blue;
background-repeat: no-repeat;
background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40"><rect x="0" y="0" width="15" height="15" fill="pink"/><rect x="25" y="25" width="15" height="15" fill="green"/></svg>');
}
</style>
</head>
<body>
<div class="border"></div>
</body>
</html>
|