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

Unified Diff: LayoutTests/scrollbars/custom-scrollbar-inactive-only-on-windowinactive-selector.html

Issue 861553003: Invalidate CustomScrollbars on having window-inactive selector. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: modified testcase 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/scrollbars/custom-scrollbar-inactive-only-on-windowinactive-selector.html
diff --git a/LayoutTests/scrollbars/custom-scrollbar-inactive-only-on-windowinactive-selector.html b/LayoutTests/scrollbars/custom-scrollbar-inactive-only-on-windowinactive-selector.html
new file mode 100644
index 0000000000000000000000000000000000000000..15a6e0d245a8cdb1f2e498629efcfb5d0c8474f4
--- /dev/null
+++ b/LayoutTests/scrollbars/custom-scrollbar-inactive-only-on-windowinactive-selector.html
@@ -0,0 +1,26 @@
+<!DOCTYPE HTML>
+<style>
+::-webkit-scrollbar {
+ width: 12px;
+ height: 12px;
+ background: rgba(255,0,0,0.8);
+}
+body {
+ width: 1000px;
+ height: 1000px;
+}
+div {
+ width: 100px;
+ height: 100px;
+ overflow: scroll;
+}
+</style>
+<iframe src="resources/scrollable-iframe-customscrollbar-windowinactive.html"></iframe>
+<div><div></div></div>
+<script>
+window.onload = function() {
+// setWindowIsKey shall set the focus of the window.
+if (window.testRunner)
+ window.testRunner.setWindowIsKey(false);
+}
+</script>

Powered by Google App Engine
This is Rietveld 408576698