| <!DOCTYPE html> |
| <svg style="position:absolute;"> |
| <defs> |
| <clipPath id="path"> |
| <rect x="50" y="50" width="400" height="400"/> |
| <!-- Adding an empty text node to force mask-based clipping. --> |
| <text></text> |
| </clipPath> |
| </defs> |
| </svg> |
| <div style="position:absolute; left:0; top:0; width:10px; height:10px; clip-path:url(#path);"> |
| <div style="width:100px; height:100px; background:green;"></div> |
| </div> |
| This test verifies the kSrcIn layer of the clipped contents be at least as big |
| as the clip mask layer, so the clip mask doesn't leak out. |