| Index: third_party/WebKit/LayoutTests/compositing/repaint/background-attachment-fixed-scrolled.html
|
| diff --git a/third_party/WebKit/LayoutTests/compositing/repaint/background-attachment-fixed-scrolled.html b/third_party/WebKit/LayoutTests/compositing/repaint/background-attachment-fixed-scrolled.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..0a40f2ea0b66988040b5f1817ea53e7ef44afae8
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/compositing/repaint/background-attachment-fixed-scrolled.html
|
| @@ -0,0 +1,27 @@
|
| +<!DOCTYPE html>
|
| +<style>
|
| +#bloat {
|
| + height: 1000px;
|
| +}
|
| +
|
| +#composited-background-attachment-fixed {
|
| + position: absolute;
|
| + left: 50px;
|
| + top: 200px;
|
| + width: 500px;
|
| + height: 1000px;
|
| + background: url('resources/grid.png') fixed;
|
| + will-change: opacity;
|
| +}
|
| +</style>
|
| +<div id="bloat">
|
| +The test verifies background-attachment:fixed gets invalidated after scroll even if they are composited.
|
| +</div>
|
| +<div id="composited-background-attachment-fixed"></div>
|
| +<script src="../../resources/run-after-layout-and-paint.js"></script>
|
| +<script>
|
| +document.body.offsetTop;
|
| +runAfterLayoutAndPaint(function() {
|
| + scrollTo(0, 123);
|
| +}, true);
|
| +</script>
|
|
|