Adding test for bug 307076

This commit is contained in:
Boris Zbarsky 2009-02-17 12:39:21 -05:00
parent ac212c246b
commit ff833a89a4
3 changed files with 36 additions and 0 deletions

View File

@ -0,0 +1,13 @@
<!DOCTYPE html>
<html style="height: 100%">
<body style="height: 100%">
<table style="height: 50%; width: 50%">
<tr>
<td id="x" style="position: relative; top: 25%; left: 25%">
<div style="position: absolute; left: 0; right: 0; top: 0; bottom: 0;
background: green"></div>
</td>
</tr>
</table>
</body>
</html>

View File

@ -0,0 +1,22 @@
<!DOCTYPE html>
<html style="height: 100%">
<head>
<script>
function doIt() {
var d = document.createElement("div");
d.setAttribute("style",
"position: absolute; left: 0; right: 0; top: 0; " +
"bottom: 0; background: green");
document.getElementById("x").appendChild(d);
}
</script>
</head>
<body style="height: 100%" onload="doIt()">
<table style="height: 50%; width: 50%">
<tr>
<td id="x" style="position: relative; top: 25%; left: 25%">
</td>
</tr>
</table>
</body>
</html>

View File

@ -255,6 +255,7 @@ fails-if(MOZ_WIDGET_TOOLKIT!="cocoa") HTTP == 289480.html#top 289480-ref.html #
== 306660-1.html 306660-1-ref.html
== 306660-2.html 306660-2-ref.html
== 306660-3.html 306660-3-ref.html
== 307076-1.html 307076-1-ref.html
== 307102-1.html 307102-1-ref.html
== 307102-2.html 307102-2-ref.html
== 307102-3.html 307102-3-ref.html