Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/compositing/overflow/non-composited-sticky-element-in-main-thread-scrolled-composited-ancestor-expected.html |
| diff --git a/third_party/WebKit/LayoutTests/compositing/overflow/non-composited-sticky-element-in-main-thread-scrolled-composited-ancestor-expected.html b/third_party/WebKit/LayoutTests/compositing/overflow/non-composited-sticky-element-in-main-thread-scrolled-composited-ancestor-expected.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..98eb90d28bb3da80eebcdd7c6fd9743eec8397d9 |
| --- /dev/null |
| +++ b/third_party/WebKit/LayoutTests/compositing/overflow/non-composited-sticky-element-in-main-thread-scrolled-composited-ancestor-expected.html |
| @@ -0,0 +1,33 @@ |
| +<!DOCTYPE html> |
| +<style> |
| +.scroller { |
| + overflow: scroll; |
| + width: 200px; |
| + height: 600px; |
| +} |
| + |
| +.box { |
| + background: rgba(255, 0, 0, 0.5); |
| + position: sticky; |
|
flackr
2017/04/27 14:22:56
Just to avoid testing sticky with sticky, let's us
yigu
2017/04/27 15:20:10
Done.
|
| + width: 100%; |
| + height: 50px; |
| + top: 0px; |
| +} |
| + |
| +.container { |
| + width: 100%; |
| + height: 1000px; |
| + background: green; |
| +} |
| +</style> |
| + |
| +<div id="scroller" class="scroller"> |
| + <div class="container"> |
| + <div class="box"></div> |
| + </div> |
| +</div> |
| + |
| +<script> |
| + let scroller = document.getElementById('scroller'); |
| + scroller.scrollTop = 200; |
| +</script> |