Commit f322964e authored by dbates@webkit.org's avatar dbates@webkit.org

Add DRT test to ensure don't override z-index for overflow: scroll,...

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.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@153111 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 0a7a361b
2013-07-24 Daniel Bates <dabates@apple.com>
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 <robert@webkit.org>
Border drawing incorrect when using both border-collapse: collapse and overflow: hidden on a table
<!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>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment