Bug 534425. Part 5: Test that we push content to the bottommost Thebes layer when possible
new file mode 100644
--- /dev/null
+++ b/layout/reftests/layers/move-to-background-1-ref.html
@@ -0,0 +1,19 @@
+<!DOCTYPE HTML>
+<html>
+<head>
+<style>
+div {
+ overflow:hidden;
+ width:200px;
+ height:80px;
+ position:absolute;
+ left:10px;
+}
+</style>
+</head>
+<body>
+ <div style="top:0px; z-index:0">Hello</div>
+ <div style="top:200px; z-index:1">Hello</div>
+ <div style="opacity:0.5; top:100px; z-index:2">Hello</div>
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/layers/move-to-background-1.html
@@ -0,0 +1,19 @@
+<!DOCTYPE HTML>
+<html>
+<head>
+<style>
+div {
+ overflow:hidden;
+ width:200px;
+ height:80px;
+ position:absolute;
+ left:10px;
+}
+</style>
+</head>
+<body>
+ <div style="top:0px; z-index:0">Hello</div>
+ <div style="opacity:0.5; top:100px; z-index:1">Hello</div>
+ <div style="top:200px; z-index:2">Hello</div>
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/layers/reftest.list
@@ -0,0 +1,1 @@
+== move-to-background-1.html move-to-background-1-ref.html
--- a/layout/reftests/reftest.list
+++ b/layout/reftests/reftest.list
@@ -105,16 +105,19 @@ include image/reftest.list
include image-rect/reftest.list
# image-region/
include image-region/reftest.list
# inline borders and padding
include inline-borderpadding/reftest.list
+# layers/
+include layers/reftest.list
+
# line-breaking/
include line-breaking/reftest.list
# mathml/
include mathml/reftest.list
# margin-collapsing
include margin-collapsing/reftest.list