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

Unified Diff: LayoutTests/compositing/layer-creation/scroll-blocks-on-explicit.html

Issue 784453003: Initial scroll-blocks-on compositor integration (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Eliminate scrollbars from iframe test for cross-platform output consistency Created 5 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: LayoutTests/compositing/layer-creation/scroll-blocks-on-explicit.html
diff --git a/LayoutTests/compositing/layer-creation/scroll-blocks-on-explicit.html b/LayoutTests/compositing/layer-creation/scroll-blocks-on-explicit.html
new file mode 100644
index 0000000000000000000000000000000000000000..0a3998b1001ccde226a765e2d81610488031d80b
--- /dev/null
+++ b/LayoutTests/compositing/layer-creation/scroll-blocks-on-explicit.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html>
+<style>
+#redundant {
+ height: 1px;
+ scroll-blocks-on: wheel-event;
+}
+#addScroll {
+ height: 2px;
+ scroll-blocks-on: start-touch scroll-event;
+}
+#none {
+ height: 3px;
+ scroll-blocks-on: none;
+}
+</style>
+<div id=redundant></div>
+<div id=addScroll></div>
+<div id=none></div>
+<script>
+ if (window.testRunner) {
+ testRunner.dumpAsText();
+ var output = "Verifies that setting the scroll-blocks-on property in a stylesheet creates layers with the correct modes only when it's greater than the defaults on the root. In this case, only 'addScroll' should get a layer.\n\n";
+ output += internals.layerTreeAsText(document, internals.LAYER_TREE_INCLUDES_SCROLL_BLOCKS_ON);
+ testRunner.setCustomTextOutput(output);
+ }
+</script>

Powered by Google App Engine
This is Rietveld 408576698