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

Unified Diff: LayoutTests/compositing/layer-creation/scroll-blocks-on-iframe.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-iframe.html
diff --git a/LayoutTests/compositing/layer-creation/scroll-blocks-on-iframe.html b/LayoutTests/compositing/layer-creation/scroll-blocks-on-iframe.html
new file mode 100644
index 0000000000000000000000000000000000000000..a988333fc03a5bed380ac3557fb68399d7f1a820
--- /dev/null
+++ b/LayoutTests/compositing/layer-creation/scroll-blocks-on-iframe.html
@@ -0,0 +1,38 @@
+<!DOCTYPE html>
+<style>
+html {
+ scroll-blocks-on: start-touch;
+}
+iframe {
+ position: absolute;
+ height: 15px; /* large enough to prevent scrollbars */
+ width: 100px;
+ border: 0;
+}
+#f1 {
+ top: 20px;
+}
+#f2 {
+ top: 40px;
+}
+#f3 {
+ top: 60px;
+}
+#f4 {
+ top: 80px;
+}
+</style>
+<iframe id=f1 srcdoc="<style>html { scroll-blocks-on: none; }</style>"></iframe>
+<iframe id=f2 srcdoc="<style>html { scroll-blocks-on: start-touch; }</style>"></iframe>
+<iframe id=f3 srcdoc="<style></style>"></iframe>
+<iframe id=f4 srcdoc="<style>html { scroll-blocks-on: start-touch scroll-event; }</style>"></iframe>
+<script>
+ onload = function() {
+ if (window.testRunner) {
+ testRunner.dumpAsText();
+ var output = "Verify that an iframe will be promoted to a composited layer only when it has additional scroll-blocks-on bits.\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