clip-path-columns-shape-002.html (1045B)
1 <!DOCTYPE html> 2 <title>CSS Masking: Test clip-path property with svg clipPath element in column</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="issue" href="https://bugs.chromium.org/p/chromium/issues/detail?id=626097"> 6 <link rel="match" href="reference/clip-path-columns-shape-002-ref.html"> 7 <meta name="assert" content="This test ensures that clip-path property works correctly in column layout when SVG <clipPath> elements with clipPathUnits='userSpaceOnUse' is referenced."> 8 <style> 9 body { margin: 0; } 10 .clipped { 11 background-color: green; 12 border: 5px solid red; 13 -webkit-clip-path: url(#c); 14 clip-path: url(#c); 15 } 16 </style> 17 <div style="columns: 2; column-gap: 0; width: 200px; height: 100px"> 18 <div style="height: 100px"></div> 19 <div style="height: 90px" class="clipped"></div> 20 </div> 21 <svg> 22 <clipPath id="c" clipPathUnits="userSpaceOnUse"> 23 <rect x="5" y="5" width="90" height="90"/> 24 </clipPath> 25 </svg>