Adding test for bug 203923

This commit is contained in:
Boris Zbarsky 2009-03-25 15:51:58 -04:00
parent c18f0d1620
commit 43a2d64fae
3 changed files with 46 additions and 0 deletions

View File

@ -0,0 +1,22 @@
<!DOCTYPE html>
<html class="reftest-wait">
<head>
<script type="text/javascript">
function doTest() {
var c = document.createElement("span");
c.style.display = "table-cell";
c.appendChild(document.createTextNode("bc"));
var t = document.getElementById("t");
t.parentNode.insertBefore(c, t);
document.documentElement.className = "";
}
</script>
</head>
<body onload="doTest()">
<span style="display: block">
<span style="display: table-cell">a</span>
<span style="display: table-cell; white-space: pre"> </span>
<span style="display: table-cell; white-space: pre" id="t"> </span>
<span style="display: table-cell">d</span>
</body>
</html>

View File

@ -0,0 +1,22 @@
<!DOCTYPE html>
<html class="reftest-wait">
<head>
<script type="text/javascript">
function doTest() {
var t = document.getElementById("t");
t.style.display = "none";
document.body.offsetWidth;
t.style.display = "table-cell";
document.documentElement.className = "";
}
</script>
</head>
<body onload="doTest()">
<span style="display: block">
<span style="display: table-cell">a</span>
<span style="display: table-cell; white-space: pre"> </span>
<span style="display: table-cell;" id="t">bc</span>
<span style="display: table-cell; white-space: pre"> </span>
<span style="display: table-cell">d</span>
</body>
</html>

View File

@ -1,6 +1,8 @@
fails == 156888-1.html 156888-1-ref.html # bug 484825
== 156888-2.html 156888-2-ref.html
== 162063-1.xhtml about:blank
== 203923-1.html white-space-1-ref.html
== 203923-2.html white-space-1-ref.html
== 208305-1.html 208305-1-ref.html
== 277995-1.html 277995-1-ref.html
== 293576-1.html 293576-1-ref.html