clip-path-reference-box-001.html (794B)
1 <!DOCTYPE html> 2 <title>CSS Masking: clip path reference box with box-shadow</title> 3 <link rel="author" title="Fredrik Söderquist" href="mailto:fs@opera.com"> 4 <link rel="help" href="https://drafts.fxtf.org/css-masking-1/#the-clip-path"> 5 <link rel="help" href="https://drafts.csswg.org/css-backgrounds-3/#propdef-box-shadow"> 6 <link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=418484"> 7 <link rel="match" href="reference/clip-path-reference-box-001-ref.html"> 8 <meta name="assert" content="Check that the 'clip-path' property uses the border box as the reference box."> 9 10 <style> 11 .clipped { 12 width: 100px; 13 height: 200px; 14 background-color: green; 15 clip-path: polygon(0% 0%,100% 0%,100% 50%,0% 50%); 16 box-shadow: 100px 0px red; 17 } 18 </style> 19 <div class="clipped"></div>