Title: [153111] trunk/LayoutTests
Revision
153111
Author
[email protected]
Date
2013-07-24 19:32:37 -0700 (Wed, 24 Jul 2013)

Log Message

Add DRT test to ensure don't override z-index for overflow: scroll, -webkit-overflow-scrolling: touch
https://bugs.webkit.org/show_bug.cgi?id=119071

Reviewed by Simon Fraser.

Add a DRT test to ensure we don't regress the fix for <https://bugs.webkit.org/show_bug.cgi?id=119066>.

* compositing/overflow/should-not-override-z-index-for-element-with-non-auto-z-index-and-overflow-scroll-and-touch-expected.txt: Added.
* compositing/overflow/should-not-override-z-index-for-element-with-non-auto-z-index-and-overflow-scroll-and-touch.html: Added.

Modified Paths

Added Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (153110 => 153111)


--- trunk/LayoutTests/ChangeLog	2013-07-25 02:02:36 UTC (rev 153110)
+++ trunk/LayoutTests/ChangeLog	2013-07-25 02:32:37 UTC (rev 153111)
@@ -1,3 +1,15 @@
+2013-07-24  Daniel Bates  <[email protected]>
+
+        Add DRT test to ensure don't override z-index for overflow: scroll, -webkit-overflow-scrolling: touch
+        https://bugs.webkit.org/show_bug.cgi?id=119071
+
+        Reviewed by Simon Fraser.
+
+        Add a DRT test to ensure we don't regress the fix for <https://bugs.webkit.org/show_bug.cgi?id=119066>.
+
+        * compositing/overflow/should-not-override-z-index-for-element-with-non-auto-z-index-and-overflow-scroll-and-touch-expected.txt: Added.
+        * compositing/overflow/should-not-override-z-index-for-element-with-non-auto-z-index-and-overflow-scroll-and-touch.html: Added.
+
 2013-07-24  Robert Hogan  <[email protected]>
 
         Border drawing incorrect when using both border-collapse: collapse and overflow: hidden on a table

Added: trunk/LayoutTests/compositing/overflow/should-not-override-z-index-for-element-with-non-auto-z-index-and-overflow-scroll-and-touch-expected.txt (0 => 153111)


--- trunk/LayoutTests/compositing/overflow/should-not-override-z-index-for-element-with-non-auto-z-index-and-overflow-scroll-and-touch-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/compositing/overflow/should-not-override-z-index-for-element-with-non-auto-z-index-and-overflow-scroll-and-touch-expected.txt	2013-07-25 02:32:37 UTC (rev 153111)
@@ -0,0 +1 @@
+PASS

Added: trunk/LayoutTests/compositing/overflow/should-not-override-z-index-for-element-with-non-auto-z-index-and-overflow-scroll-and-touch.html (0 => 153111)


--- trunk/LayoutTests/compositing/overflow/should-not-override-z-index-for-element-with-non-auto-z-index-and-overflow-scroll-and-touch.html	                        (rev 0)
+++ trunk/LayoutTests/compositing/overflow/should-not-override-z-index-for-element-with-non-auto-z-index-and-overflow-scroll-and-touch.html	2013-07-25 02:32:37 UTC (rev 153111)
@@ -0,0 +1,53 @@
+<!DOCTYPE html>
+<html>
+<head>
+<style>
+body {
+    margin: 0;
+    padding: 0;
+}
+
+#container {
+    overflow: hidden;
+    overflow-y: scroll;
+    -webkit-overflow-scrolling: touch;
+    position: absolute;
+    z-index: 10;
+    top: 0;
+}
+
+.red-square {
+    position: absolute;
+    z-index: 2;
+}
+
+.square {
+    height: 256px;
+    width: 256px;
+}
+</style>
+</head>
+<script>
+if (window.testRunner)
+    testRunner.dumpAsText();
+</script>
+<body>
+    <!-- This tests that we do not override the z-index to be 0 on an element with a non-auto z-index, CSS "overflow: scroll" and "-webkit-overflow-scrolling: touch". This test passed if you see the word PASS below. Otherwise, it FAILED. -->
+    <!-- Note, this test should pass with- and without- ACCELERATED_OVERFLOW_SCROLLING enabled. -->
+    <div id="test-container">
+        <div class="square red-square" style="background-color: red">FAIL</div>
+        <div id="container">
+            <div id="pass" class="square" style="background-color: green">PASS</div>
+        </div>
+    </div>
+    <div id="result"></div>
+    <script>
+    if (window.testRunner) {
+        // FIXME: We shouldn't hardcode the coordinates of the point to test we should find a way to query
+        // for the position of test-container.
+        document.getElementById("result").innerText = document.elementFromPoint(10, 10) == document.getElementById("pass") ? "PASS" : "FAIL";
+        document.body.removeChild(document.getElementById("test-container"));
+    }
+    </script>
+</body>
+</html>
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to