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

Side by Side Diff: LayoutTests/fast/dom/partial-layout-overlay-scrollbars.html

Issue 18601002: Add infrastructure for partial layouts (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Address reviewer comments. Add PartialLayoutState and PartialLayoutDisabler Created 7 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
(Empty)
1 <!DOCTYPE HTML>
2 <html>
3 <script src="../js/resources/js-test-pre.js"></script>
4 <head>
5 <style>
6 * {
7 margin: 0;
8 padding: 0;
9 }
10
11 #makespace {
12 height: 5000px;
13 }
14 </style>
15 <script>
16 description('Test that partial layout works with overlay scrollbars.');
17 if (window.testRunner)
18 testRunner.dumpAsText();
19 if (window.internals)
20 window.internals.setUsesOverlayScrollbars(true);
21
22 function checkSize() {
23 var measure = document.getElementById('measure');
24 var measureWidth = measure.offsetWidth; // Partial layout occurs here!
25 shouldBe(measureWidth, "document.body.offsetWidth");
26 shouldBe(measureWidth, "window.innerWidth");
27 finishJSTest();
28 }
29 </script>
30 </head>
31 <body onload="checkSize()">
32 <div id="makespace"></div>
33 <div id="measure"></div>
34 <script src="../js/resources/js-test-post.js"></script>
35 </body>
36 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698