<svg width="400" height="400" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> | |
<rect width="100" height="100" fill="green"/> | |
<text y="150">This test passes if there is a green box and no red</text> | |
<clipPath id="clip"> | |
<rect width="100" height="100" /> | |
</clipPath> | |
<!-- The following rect should be completely clipped and should not paint. --> | |
<rect x="300" y="300" width="200" height="200" clip-path="url(#clip)" style="outline: 100px solid rgba(255,0,0,0.99)" /> | |
</svg> |