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

Unified Diff: third_party/WebKit/LayoutTests/scrollbars/auto-scrollbar-fades-out.html

Issue 2505253002: Set scrollbar enabled state for overflow:auto. (Closed)
Patch Set: Rebase Created 4 years, 1 month 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/scrollbars/auto-scrollbar-fades-out.html
diff --git a/third_party/WebKit/LayoutTests/scrollbars/auto-scrollbar-fades-out.html b/third_party/WebKit/LayoutTests/scrollbars/auto-scrollbar-fades-out.html
new file mode 100644
index 0000000000000000000000000000000000000000..283508c86c79f40d55798e3ee922a89446047f34
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/scrollbars/auto-scrollbar-fades-out.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<script>
+ if (window.internals) {
+ window.internals.settings.setOverlayScrollbarsEnabled(true);
+ window.internals.settings.setMockScrollbarsEnabled(true);
+
+ window.onload = function() {
+ var div = document.getElementById('iframe')
+ .contentDocument
+ .getElementById('target');
+ window.internals.setScrollbarVisibilityInScrollableArea(div, false);
+ }
+ }
+</script>
+<iframe srcdoc="
+ <div id='target' style='overflow:auto; width:300px; height:300px'>
+ <div style='height:2000px; width:100px; background-color:green'>
+ </div>
+ </div>"
+ id="iframe" width="400" height="400" scrolling="yes"></iframe>

Powered by Google App Engine
This is Rietveld 408576698