text-mask-transform.html (916B)
1 <!DOCTYPE html> 2 <meta name="assert" content="There should be no hairline along the edges of mask bounding box"> 3 <link rel="match" href="text-clip-path-transform-ref.html"> 4 <style>body { margin: 0 }</style> 5 <svg style="background: green" width="200" height="200" viewBox="0 0 150 150"> 6 <defs> 7 <mask id="mask"> 8 <text fill="white"> 9 <tspan x="120" y="25">A</tspan> 10 <tspan x="8" y="140">B</tspan> 11 </text> 12 </mask> 13 </defs> 14 <rect style="will-change: transform; mask: url(#mask)" fill="red" x="0" y="0" width="200" height="200"> 15 </svg> 16 <!-- cover the non-interesting part which is difficult to match a ref. 17 Overflow clip doesn't work to reproduce the issue. --> 18 <div style="position: absolute; background: white; left: 100px; top: 0; width: 100px; height: 100px"></div> 19 <div style="position: absolute; background: white; left: 0; top: 100px; width: 100px; height: 100px"></div>