clip-path-paddingBox-1e.html (804B)
1 <!DOCTYPE html> 2 <title>CSS Masking: clip path with padding-box and border-radius</title> 3 <link rel="help" href="https://drafts.fxtf.org/css-masking-1/#the-clip-path"> 4 <link rel="help" href="https://drafts.csswg.org/css-shapes-1/#valdef-shape-box-padding-box"> 5 <link rel="match" href="reference/green-circle-100x100.html"> 6 <meta name="fuzzy" content="maxDifference=0-70; totalPixels=0-400"> 7 <meta name="assert" content="Check that the 'clip-path' property supports padding-box with border-radius."> 8 9 <style> 10 body { margin: 0; } 11 .clipped { 12 width: 100px; 13 height: 100px; 14 background-color: green; 15 clip-path: padding-box; 16 /* This border draws outside the padding box and should be clipped. */ 17 border: 8px solid red; 18 border-radius: 58px; 19 } 20 </style> 21 <div class="clipped"></div>