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

Side by Side Diff: third_party/WebKit/LayoutTests/compositing/layer-creation/iframe-background-attachment-fixed.html

Issue 2531603003: Only scroll on main if the targeted frames need to scroll on main (Closed)
Patch Set: Bug fixed 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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <pre id="mainThreadScrollingReasons"></pre> 2 <pre id="mainThreadScrollingReasons"></pre>
3 <iframe src="resources/background-attachment-fixed.html"></iframe> 3
4 <iframe id="iframe" src="resources/background-attachment-fixed.html"></iframe>
5
6 <div style="height: 2000px;">
7 </div>
8
4 <script> 9 <script>
10 function scrollingLocationAndReasons(reasons) {
11 return reasons ? "scrolls on main: " + reasons : "scrolls on impl";
12 }
13
5 if (window.testRunner) 14 if (window.testRunner)
6 testRunner.dumpAsText(true); 15 testRunner.dumpAsText(true);
16
7 window.addEventListener('load', function() { 17 window.addEventListener('load', function() {
8 document.getElementById("mainThreadScrollingReasons").innerText = window.int ernals.mainThreadScrollingReasons(document); 18 reasons = window.internals.mainThreadScrollingReasons(document);
19 text = "Main frame " + scrollingLocationAndReasons(reasons);
20 text += "\nThe iFrame scrolls on main thread, reasons: " + document.getEleme ntById("iframe").contentDocument.getElementById("mainThreadScrollingReasons").in nerText;
21 document.getElementById("mainThreadScrollingReasons").innerText = text;
9 }); 22 });
10 </script> 23 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698