Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/paint/invalidation/relative-position-under-composited-scroll.html |
| diff --git a/third_party/WebKit/LayoutTests/paint/invalidation/relative-position-under-composited-scroll.html b/third_party/WebKit/LayoutTests/paint/invalidation/relative-position-under-composited-scroll.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..954bb59149bc64c916591ef5bd9eff95bc0730a5 |
| --- /dev/null |
| +++ b/third_party/WebKit/LayoutTests/paint/invalidation/relative-position-under-composited-scroll.html |
| @@ -0,0 +1,19 @@ |
| +<!DOCTYPE html> |
| +Tests paint invalidation when an object under composited scrolled container is |
| +set 'display: relative'. Passes if no red residue. |
| +<div style="overflow: scroll; width: 200px; height: 200px"> |
| + <div style="width: 800px; height: 800px"> |
| + <div id="item" style="background-color: red; width: 50px; height: 50px"></div> |
| + </div> |
| +</div> |
| +<script src="../../resources/run-after-layout-and-paint.js"></script> |
| +<script> |
| +if (window.internal) |
| + internals.settings.setPreferCompositingToLCDTextEnabled(true); |
|
chrishtr
2016/05/02 21:13:32
How about using will-changeL transform instead of
Xianzhu
2016/05/02 21:59:29
It's special because it establishes a composited l
|
| +runAfterLayoutAndPaint(function() { |
| + item.style.position = 'relative'; |
| + item.style.left = '100px'; |
| + item.style.top = '100px'; |
| + item.style.backgroundColor = 'green'; |
| +}, true); |
| +</script> |