Tests for bug 730562, r=roc

This commit is contained in:
Simon Montagu 2012-03-21 16:50:45 -07:00
parent 45be3cde72
commit d42893252d
3 changed files with 37 additions and 0 deletions

View File

@ -0,0 +1,12 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
</head>
<body>
<div style="direction: rtl; white-space: pre;"><span style="outline: 1px solid red;" id="x">
</span></div>
</body>
</html>

View File

@ -0,0 +1,24 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script>
function boom()
{
// Force frame construction
document.documentElement.offsetHeight;
// A dynamic change
var x = document.getElementById("x");
x.removeChild(x.firstChild);
x.appendChild(document.createTextNode("\n\n\n"));
}
</script>
</head>
<body onload="boom();">
<div style="direction: rtl; white-space: pre;"><span style="outline: 1px solid red;" id="x">
:p</span></div>
</body>
</html>

View File

@ -102,3 +102,4 @@ fails-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)&&!layersGPUAccelerated) == 61
== 726420-1.html 726420-1-ref.html
== 726460-1.html 726460-1-ref.html
== 729047-1.html 729047-1-ref.html
== 730562-1.html 730562-1-ref.html