layout/svg/crashtests/1072758.html
author violet <violet.bugreport@gmail.com>
Sat, 16 Mar 2019 02:36:09 +0000
changeset 464477 2717903072b67945042d543901238c491e5d20ca
permissions -rw-r--r--
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

<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>