Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /svg/struct/reftests/svg-getIntersectionList-001.svg - WPT Dashboard Interop Dashboard
<?xml version="1.0" encoding="UTF-8"?>
<svg width="500" height="500"
<!-- getIntersectionList causes transforms to be recalculated in SVG -->
<h:link rel="match" href="reference/green-100x100.svg"/>
<script>
onload = function() {
const root = document.documentElement;
root.getIntersectionList(root.createSVGRect(), null);
}
</script>
<!-- This test passes if there is a green non-rotated square visible on the top-left corner of the page. -->
<g transform="translate(100, 100) rotate(135)">
<rect width="100" height="100" fill="green" transform="rotate(45)" />
</g>
</svg>