border-image-021.html (721B)
1 <!doctype html> 2 <title>border-image w/ border radius</title> 3 <link rel="help" href="https://drafts.csswg.org/css-backgrounds/#border-images"> 4 <link rel="help" href="https://issues.chromium.org/378404999"> 5 <link rel="match" href="reference/ref-filled-green-100px-square.xht"> 6 <style> 7 #target { 8 width: 100px; 9 height: 100px; 10 background: conic-gradient(rgba(255, 0, 0, 0.5) 0 0), conic-gradient(red 0 0); 11 border-radius: 40px; 12 border-image: conic-gradient(green 0 0) 1 fill / 10px; 13 } 14 #back { 15 width: 100px; 16 height: 100px; 17 background-color: red; 18 } 19 </style> 20 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 21 <div id="back"> 22 <div id="target"></div> 23 </div>