clip-path-foreignobject-non-zero-xy.html (733B)
1 <!doctype html> 2 <title>CSS Masking: clip-path on a foreignObject with non-zero 'x' and 'y' render correctly</title> 3 <link rel="help" href="https://drafts.fxtf.org/css-masking-1/#the-clip-path"> 4 <link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1218383"> 5 <link rel="match" href="reference/green-100x100.html"> 6 <svg viewBox="25 50 200 100" width="200"> 7 <rect x="25" y="50" width="100" height="100" fill="red"/> 8 <clipPath id="r"> 9 <rect x="25" y="50" width="100" height="100"/> 10 </clipPath> 11 <foreignObject x="25" y="50" width="150" height="100" clip-path="url(#r)"> 12 <div style="width: 100px; height: 100px; background-color: green; border-right: 50px solid red"></div> 13 </foreignObject> 14 </svg>