border-image-repeat-1.html (1071B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>CSS Border Image: border-image-repeat with SVG content</title> 6 <link rel="author" title="Ethan Lin" href="mailto:ethlin@mozilla.com"> 7 <link rel="author" title="Mozilla" href="https://www.mozilla.org"> 8 <link rel="help" href="https://www.w3.org/TR/css3-background/#background-repeat"> 9 <link rel="match" href="border-image-repeat-1-ref.html"> 10 <meta name="assert" content="The test checks the result of border-image-repeat with SVG content."> 11 <style type="text/css"> 12 .outer { 13 height: 16px; 14 width: 32px; 15 border-width: 16px; 16 border-style: solid; 17 border-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cg fill='blue' stroke-width='0'%3E%3Cpath d='M2 2h4v44H2z'/%3E%3Cpath d='M2 2h44v4H2z'/%3E%3Cpath d='M42 2h4v44h-4z'/%3E%3Cpath d='M2 42h44v4H2zM8'/%3E%3C/g%3E%3C/svg%3E") 16 repeat; 18 } 19 </style> 20 </head> 21 <body> 22 <div class="outer"></div> 23 </body> 24 </html>