border-image-calc.html (783B)
1 <!doctype html> 2 <title>CSS Test: border-image honors calc() lengths / percentages</title> 3 <link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io"> 4 <link rel="author" title="Mozilla" href="https://mozilla.org"> 5 <link rel="help" href="https://bugzil.la/1517521"> 6 <link rel="help" href="https://drafts.csswg.org/css-backgrounds/#border-image-width"> 7 <link rel="match" href="border-image-calc-ref.html"> 8 <style> 9 #test { 10 background-color: red; 11 border: 100px solid red; 12 border-image-slice: 10; 13 border-image-source: url("support/green_color.png"); 14 border-image-width: 100px calc(100px) calc(100%) calc(50% + 50px); 15 height: 0; 16 width: 0; 17 } 18 </style> 19 <p>Test passes if there is a green 200px times 200px square.</p> 20 <div id="test"></div>