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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/block/float/float-change-composited-scrolling.html

Issue 1661523002: Update should paint flag when a float's composited scrolling status changes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../../../resources/run-after-layout-and-paint.js"></script>
3 <script>
4 if (window.internals) {
5 internals.settings.setPreferCompositingToLCDTextEnabled(true);
6 internals.settings.setMockScrollbarsEnabled(true);
7 internals.settings.setOverlayScrollbarsEnabled(true);
8 }
9
10 if (window.testRunner)
11 testRunner.waitUntilDone();
12
13 runAfterLayoutAndPaint(function() {
14 document.getElementById('content').style.height = '250px';
15 runAfterLayoutAndPaint(function() {
16 document.getElementById('content').style.height = '150px';
17 if (window.testRunner)
wkorman 2016/02/02 22:02:35 I think you can just pass true as a second param t
Xianzhu 2016/02/02 22:47:12 Done. Actually there was a syntax error here. Add
18 testRunner.notifyDone();
19 };
20 });
21 </script>
22
23 Tests a float changes using composited scrolling. Passes if the green square is always visible.<p>
24 To test manually, use command line switches --enable-prefer-compositing-to-lcd-t ext --enable-overlay-scrollbar
25 <div style="height: 200px">
26 <div style="float: left; width: 300px; height: 100%; overflow: auto; backgroun d-color: green">
27 <div id="content" style="height: 150px"></div>
28 </div>
29 </div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698