blob: 2be85d3535fc81b4618bf81a65e3aade450f8017 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!-- getIntersectionList causes transforms to be recalculated in SVG
https://bugs.webkit.org/show_bug.cgi?id=77179 -->
<svg id="root" width="500" height="500" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<script>
function runTest() {
var root = document.documentElement;
root.appendChild(document.createElementNS("http://www.w3.org/2000/svg", "text"));
root.getIntersectionList(root.createSVGRect(), null);
}
window.addEventListener('load', runTest, false);
</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 x="1" y="1" width="100" height="100" fill="green" transform="rotate(45)" />
</g>
</svg>