Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(351)

Unified Diff: third_party/WebKit/LayoutTests/compositing/layer-creation/resources/background-attachment-fixed.html

Issue 2531603003: Only scroll on main if the targeted frames need to scroll on main (Closed)
Patch Set: Resolve conflict Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/compositing/layer-creation/resources/background-attachment-fixed.html
diff --git a/third_party/WebKit/LayoutTests/compositing/layer-creation/resources/background-attachment-fixed.html b/third_party/WebKit/LayoutTests/compositing/layer-creation/resources/background-attachment-fixed.html
index 7fe9fed1c29f6440aa56fd0603b0701291d0cccb..5ced662b4940c91d45c5634b3ff87af6c1cfb72c 100644
--- a/third_party/WebKit/LayoutTests/compositing/layer-creation/resources/background-attachment-fixed.html
+++ b/third_party/WebKit/LayoutTests/compositing/layer-creation/resources/background-attachment-fixed.html
@@ -1,7 +1,18 @@
<!DOCTYPE html>
+<pre id="mainThreadScrollingReasons"></pre>
<style>
-body {
+.composited-background-attachment-fixed {
height: 1000px;
background: url('grid.png') fixed;
+ will-change: transform;
}
</style>
+
+<div class="composited-background-attachment-fixed">
+</div>
+
+<script>
+window.addEventListener('load', function() {
+ document.getElementById("mainThreadScrollingReasons").innerText = window.internals.mainThreadScrollingReasons(document);
+});
+</script>

Powered by Google App Engine
This is Rietveld 408576698