| Index: third_party/WebKit/LayoutTests/fast/css/sticky/sticky-clip-rel-child.html
|
| diff --git a/third_party/WebKit/LayoutTests/fast/css/sticky/sticky-clip-rel-child.html b/third_party/WebKit/LayoutTests/fast/css/sticky/sticky-clip-rel-child.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..2607b5e296f3bf4d3a79e8f30273f3da367f825e
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/fast/css/sticky/sticky-clip-rel-child.html
|
| @@ -0,0 +1,45 @@
|
| +<!DOCTYPE html>
|
| +<style>
|
| +body {
|
| + height: 2000px;
|
| + margin: 0;
|
| +}
|
| +.sticky {
|
| + background: red;
|
| + height: 100px;
|
| + width: 100px;
|
| + overflow: hidden;
|
| + position: sticky;
|
| + top: 0;
|
| +}
|
| +.relative {
|
| + background: green;
|
| + height: 100px;
|
| + width: 100px;
|
| + position: relative;
|
| +}
|
| +</style>
|
| +<script>
|
| +if (window.testRunner)
|
| + testRunner.waitUntilDone();
|
| +function doTest() {
|
| + finishTestInXFrames(2);
|
| +}
|
| +function finishTestInXFrames(frames) {
|
| + if (frames > 0) {
|
| + requestAnimationFrame(finishTestInXFrames.bind(null, frames - 1));
|
| + return;
|
| + }
|
| + finishTest();
|
| +}
|
| +function finishTest() {
|
| + window.scrollTo(0, 100);
|
| + if (window.testRunner)
|
| + testRunner.notifyDone();
|
| +}
|
| +window.addEventListener('load', doTest, false);
|
| +</script>
|
| +<div class="sticky">
|
| + <div class="relative">
|
| + </div>
|
| +</div>
|
|
|