Add reftests for bug 490176 and bug 490177

This commit is contained in:
Jesse Ruderman 2009-12-16 18:45:09 -08:00
parent 7b122fa3ff
commit c462eaca6f
5 changed files with 96 additions and 0 deletions

View File

@ -0,0 +1,18 @@
<html>
<head>
<style type="text/css">
body, p {
display: table;
position: absolute;
}
</style>
</head>
<body>
<div>A B</div>
<p id="n">C D</p>
</body>
</html>

View File

@ -0,0 +1,31 @@
<html>
<head>
<style type="text/css">
body, p {
display: table;
position: absolute;
}
</style>
<script type="text/javascript">
function boom()
{
var n = document.getElementById("n");
var b = document.body;
var next = n.nextSibling;
b.removeChild(n);
b.insertBefore(n, next);
}
</script>
</head>
<body onload="boom();">
<div>A B</div>
<p id="n">C D</p>
</body>
</html>

View File

@ -0,0 +1,18 @@
<svg xmlns="http://www.w3.org/2000/svg"
xmlns:html="http://www.w3.org/1999/xhtml">
<foreignObject id="f" width="500" height="500" y="300">
<div xmlns="http://www.w3.org/1999/xhtml">
<table border="1">
<tr>
<td><input type="text" value="3" /></td>
</tr>
</table>
</div>
</foreignObject>
</svg>

After

Width:  |  Height:  |  Size: 308 B

View File

@ -0,0 +1,27 @@
<svg xmlns="http://www.w3.org/2000/svg"
xmlns:html="http://www.w3.org/1999/xhtml">
<foreignObject id="f" width="500" height="500" y="300">
<div xmlns="http://www.w3.org/1999/xhtml">
<table border="1">
<tr>
<td><input type="text" value="3" /></td>
</tr>
</table>
</div>
</foreignObject>
<script>
window.addEventListener("load", boom, false);
function boom()
{
var f = document.getElementById("f");
document.documentElement.appendChild(f);
}
</script>
</svg>

After

Width:  |  Height:  |  Size: 477 B

View File

@ -1266,6 +1266,8 @@ fails-if(MOZ_WIDGET_TOOLKIT=="gtk2") == 481948-3.html 481948-3-ref.html # differ
== 488649-1.html 488649-1-ref.html
== 488685-1.html 488685-1-ref.html
fails-if(MOZ_WIDGET_TOOLKIT!="cocoa") == 488692-1.html 488692-1-ref.html # needs EXTEND_PAD on non-Mac for correct scaling behaviour
== 490176-1.html 490176-1-ref.html
== 490177-1.svg 490177-1-ref.svg
== 490182-1a.html 490182-1-ref.html
== 490182-1b.html 490182-1-ref.html
== 490173-1.html 490173-1-ref.html