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

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: 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
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..ef2c90c6af72b15b8110451c67095bece9711028
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/float/float-change-composited-scrolling.html
@@ -0,0 +1,29 @@
+<!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';
+ if (window.testRunner)
+ testRunner.notifyDone();
+ };
+});
+</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: rgba(0,255,0,0.5)">
+ <div id="content" style="height: 150px"></div>
+ </div>
+</div>

Powered by Google App Engine
This is Rietveld 408576698