border-image-width-should-extend-to-padding.html (1435B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <link rel="author" title="Tyler Wilcock" href="mailto:twilco.o@protonmail.com"> 4 <link rel="help" href="https://drafts.csswg.org/css-backgrounds/#border-image-width"> 5 6 <!-- Editorial of the spec. 7 > Since by default a border image is only drawn in the border area, by default a border-style of none will make 8 > it disappear. However, the border-image-outset and border-image-width values can alter the “border” area into 9 > which the border image is drawn, extending it into the padding area (in the case of border-image-widths greater 10 > than the border-width) or extending it outside the border edge (in the case of border-image-outset greater than zero). 11 --> 12 <link rel="help" href="https://github.com/w3c/csswg-drafts/issues/655#issuecomment-331059128"> 13 <link rel="match" href="border-image-width-should-extend-to-padding-ref.html"> 14 <title> 15 `border-image-width` should extend into padding given an empty border area via `border-style: none` 16 </title> 17 <style> 18 div { 19 width: 200px; 20 height: 200px; 21 margin: 20px; 22 background-color: silver; 23 border-image-source: linear-gradient(blue, orange); 24 border-image-slice: 32; 25 border-image-repeat: repeat; 26 border-image-width: 32px; 27 border-style: none; 28 } 29 </style> 30 31 Test passes if a 200x200px (content + padding + border) box with a 32px border-image is rendered. 32 <div></div>