mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-24 02:35:41 +00:00
03b4894819
MozReview-Commit-ID: FBDuGice0DU --HG-- extra : rebase_source : 3e932e2851d9f706e11c56156a5bc48a2df8b1c2
55 lines
1.3 KiB
HTML
55 lines
1.3 KiB
HTML
<!DOCTYPE html>
|
|
<html class="reftest-wait">
|
|
|
|
<head>
|
|
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
|
<meta charset="utf-8">
|
|
</head>
|
|
|
|
<body>
|
|
<div id="container">
|
|
<div id="element">
|
|
<!--
|
|
The HTML code for this element has no other meaning than to create
|
|
display items that are merged together.
|
|
-->
|
|
<div style="-moz-column-count:2; column-count:2; width:300px; height:100px;">
|
|
<div id="o" style="opacity:0.5; width:100px; height:200px; background:lime;">
|
|
<div id="d" style="height:50px; width:80px; background:red; padding:2px">Text</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<script type="text/javascript">
|
|
function redirect() {
|
|
document.documentElement.removeAttribute("class");
|
|
|
|
// Trigger root frame deletion.
|
|
window.location.replace("about:blank");
|
|
}
|
|
|
|
function removeElements(container) {
|
|
document.body.removeChild(container);
|
|
|
|
setTimeout(redirect, 0);
|
|
}
|
|
|
|
function createElements() {
|
|
var c = document.getElementById("container");
|
|
var e = document.getElementById("element");
|
|
for (var i = 0; i < 1000; ++i) {
|
|
// Populate the container with elements that cause display item merges.
|
|
c.appendChild(e.cloneNode(true));
|
|
}
|
|
|
|
setTimeout(() => removeElements(c), 0);
|
|
}
|
|
|
|
document.addEventListener("MozReftestInvalidate", createElements);
|
|
// window.addEventListener("load", createElements);
|
|
</script>
|
|
|
|
</body>
|
|
</html>
|