Bug 534425. Part 5: Test that we push content to the bottommost Thebes layer when possible
authorRobert O'Callahan <robert@ocallahan.org>
Mon, 01 Mar 2010 20:56:20 +1300
changeset 38804 97ad975ec651f8c0ffa8cc507765e14ba6c97d76
parent 38803 9958e7a9771e4a05afd6165cf63b43aad8a3af61
child 38805 c85d57ea1d37fdfea1ba14d487df44bf66acad3a
push idunknown
push userunknown
push dateunknown
bugs534425
milestone1.9.3a3pre
Bug 534425. Part 5: Test that we push content to the bottommost Thebes layer when possible
layout/reftests/layers/move-to-background-1-ref.html
layout/reftests/layers/move-to-background-1.html
layout/reftests/layers/reftest.list
layout/reftests/reftest.list
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