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

Side by Side Diff: LayoutTests/fast/dom/Document/scrollingElement-noStyleUpdate-strict.html

Issue 1216953003: Promote scrollTopLeftInterop mode to experimental (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove fixes moved to other patches Created 5 years, 4 months 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 | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <style> 2 <style>
3 </style> 3 </style>
4 <html> 4 <html>
5 <body> 5 <body>
6 </body> 6 </body>
7 </html> 7 </html>
8 <script src="../../../resources/js-test.js"></script> 8 <script src="../../../resources/js-test.js"></script>
9 <script src="../../../resources/run-after-display.js"></script> 9 <script src="../../../resources/run-after-display.js"></script>
10 <script> 10 <script>
11 description("Verify that document.scrollingElement doesn't force a style upd ate or layout in strict mode"); 11 description("Verify that document.scrollingElement doesn't force a style upd ate or layout in strict mode");
12 setPrintTestResultsLazily(); 12 setPrintTestResultsLazily();
13 if (window.internals)
14 internals.settings.setScrollTopLeftInteropEnabled(true);
15 13
16 document.body.offsetTop; 14 document.body.offsetTop;
17 shouldBe("internals.needsLayoutCount()", "0"); 15 shouldBe("internals.needsLayoutCount()", "0");
18 16
19 document.body.style.padding = "10px"; 17 document.body.style.padding = "10px";
20 shouldBe("document.scrollingElement", "document.documentElement"); 18 shouldBe("document.scrollingElement", "document.documentElement");
21 debug("Verifying style update hadn't been triggered"); 19 debug("Verifying style update hadn't been triggered");
22 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "2"); 20 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "2");
23 debug("Verifying layout hasn't been triggered"); 21 debug("Verifying layout hasn't been triggered");
24 shouldBe("internals.needsLayoutCount()", "3"); 22 shouldBe("internals.needsLayoutCount()", "3");
25 </script> 23 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698