2013-06-25 10:01:38 +04:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<!--
|
|
|
|
https://bugzilla.mozilla.org/show_bug.cgi?id=886230
|
|
|
|
-->
|
|
|
|
<head>
|
|
|
|
<title>Test for Bug 886230</title>
|
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
|
|
|
|
<script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
|
|
|
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
|
|
|
|
<style type="text/css">
|
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=886230">Mozilla Bug 886230</a>
|
|
|
|
<p id="display">
|
|
|
|
<svg>
|
|
|
|
<mask id="m"><text id="t">x</text></mask>
|
|
|
|
<rect width="600" height="400" mask="url(#m)"/>
|
|
|
|
</svg>
|
|
|
|
</p>
|
|
|
|
<div id="content" style="display: none">
|
|
|
|
</div>
|
|
|
|
<pre id="test">
|
|
|
|
<script class="testbody" type="text/javascript">
|
|
|
|
function runTest() {
|
|
|
|
var svgText = document.getElementById("t");
|
|
|
|
|
|
|
|
// Dirty the frames.
|
|
|
|
document.getElementById("display").style.width = "700px";
|
2017-03-08 12:17:52 +03:00
|
|
|
svgText.firstChild.remove();
|
2013-06-25 10:01:38 +04:00
|
|
|
|
|
|
|
// Paint without flushing layout. If the test fails, we'll trigger
|
|
|
|
// an assertion.
|
|
|
|
SpecialPowers.snapshotWindowWithOptions(window, undefined, undefined, { DRAWWINDOW_DO_NOT_FLUSH: true });
|
|
|
|
|
|
|
|
ok(true);
|
|
|
|
SimpleTest.finish();
|
|
|
|
}
|
|
|
|
|
2017-01-17 13:50:25 +03:00
|
|
|
window.addEventListener("load", runTest);
|
2013-06-25 10:01:38 +04:00
|
|
|
|
|
|
|
SimpleTest.waitForExplicitFinish();
|
|
|
|
</script>
|
|
|
|
</pre>
|
|
|
|
</body>
|
|
|
|
</html>
|