gecko-dev/layout/svg/crashtests/1072758.html
violet d307082a12 Bug 1072758 - ScheduleReflowSVGNonDisplayText when changing style to display none r=emilio
DidSetComputedStyle won't be called if the style changes to "display:none".
To ensure the reflow is properly scheduled, we need to also hook DestroyFrom.

Differential Revision: https://phabricator.services.mozilla.com/D23353

--HG--
extra : moz-landing-system : lando
2019-03-16 02:36:09 +00:00

36 lines
534 B
HTML

<style>
#x9 {
display:none;
}
</style>
<body onload="go()">
<svg>
<path id="a"></path>
<mask id="m">
<text id="y">
<tspan id="x1"></tspan>
<textPath id="x2"></textPath>
<a id="x3">Hello</a>
<tspan><tspan id="x4"></tspan></tspan>
<tspan id="x5"></tspan>
</text>
</mask>
<rect width="600" height="400" mask="url(#m)"/>
</svg>
</body>
<script>
function go() {
x1.style.display = "none";
x2.style.display = "none";
x3.style.display = "none";
x4.style.display = "none";
x5.id = "x9";
};
</script>