summaryrefslogtreecommitdiffstats
path: root/layout/reftests/svg/text/multiple-x-percentages-3.html
blob: 409c305d15efaf5a88a91bedf23a101ac07d4a1a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<!DOCTYPE html>
<!--
     Any copyright is dedicated to the Public Domain.
     http://creativecommons.org/publicdomain/zero/1.0/
-->
<html class="reftest-wait">
<iframe style="width: 400px; height: 400px; border: 0" src="multiple-x-percentages-3-iframe.svg"></iframe>
<script>
var iframe = document.querySelector("iframe");

function doTest() {
  window.removeEventListener("MozReftestInvalidate", doTest);

  iframe.style.width = "200px";
  iframe.style.height = "200px";

  var text = iframe.contentDocument.querySelectorAll("text");
  text[0].firstChild.nodeValue += "!";
  text[1].firstChild.nodeValue += "!";

  document.documentElement.removeAttribute("class");
}

window.addEventListener("MozReftestInvalidate", doTest);
</script>