blob: d9c1ecb1e1c3982ba96015725fd0fdd04991ddb3 (
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, false);
</script>
|