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

Unified 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: Fix windows build Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/block/float/float-change-composited-scrolling-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/block/float/float-change-composited-scrolling.html
diff --git a/third_party/WebKit/LayoutTests/fast/block/float/float-change-composited-scrolling.html b/third_party/WebKit/LayoutTests/fast/block/float/float-change-composited-scrolling.html
new file mode 100644
index 0000000000000000000000000000000000000000..78088fe141ab82a53160554460c16f4cabbcdc3a
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/float/float-change-composited-scrolling.html
@@ -0,0 +1,28 @@
+<!DOCTYPE html>
+<script src="../../../resources/run-after-layout-and-paint.js"></script>
+<script>
+if (window.internals) {
+ internals.settings.setPreferCompositingToLCDTextEnabled(true);
+ internals.settings.setMockScrollbarsEnabled(true);
+ internals.settings.setOverlayScrollbarsEnabled(true);
+}
+
+if (window.testRunner)
+ testRunner.waitUntilDone();
+
+runAfterLayoutAndPaint(function() {
+ document.getElementById('content').style.height = '250px';
+ runAfterLayoutAndPaint(function() {
+ document.getElementById('content').style.height = '150px';
+ document.body.appendChild(document.createTextNode('Finished.'));
+ }, true);
+});
+</script>
+
+Tests a float changes using composited scrolling. Passes if the green square is always visible.<p>
+To test manually, use command line switches --enable-prefer-compositing-to-lcd-text --enable-overlay-scrollbar
+<div style="height: 200px">
+ <div style="float: left; width: 300px; height: 100%; overflow: auto; background-color: green">
+ <div id="content" style="height: 150px"></div>
+ </div>
+</div>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/block/float/float-change-composited-scrolling-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698