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

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: Fix compiling error due to using backslash at the end of a commenting line" 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..e44b46f9082f4b145b0ad927b91d4100ccea49bb 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,20 @@
<!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>
+if (window.testRunner)
pdr. 2016/12/19 04:04:28 Nit: is this test only loaded as an iframe in othe
yigu 2016/12/20 00:48:34 Done.
+ testRunner.dumpAsText(true);
+window.addEventListener('load', function() {
+ document.getElementById("mainThreadScrollingReasons").innerText = window.internals.mainThreadScrollingReasons(document);
+});
+</script>

Powered by Google App Engine
This is Rietveld 408576698