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

Unified Diff: LayoutTests/fast/scrolling/custom-scrollbar-style-applied.html

Issue 1274073002: Apply custom scrollbar styles to the frame with root layer scrolling. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: addressed review comments Created 5 years, 4 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
« no previous file with comments | « no previous file | LayoutTests/fast/scrolling/custom-scrollbar-style-applied-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/scrolling/custom-scrollbar-style-applied.html
diff --git a/LayoutTests/fast/scrolling/custom-scrollbar-style-applied.html b/LayoutTests/fast/scrolling/custom-scrollbar-style-applied.html
new file mode 100644
index 0000000000000000000000000000000000000000..511691779215fbc4bf84b8f843a7769126c06cc0
--- /dev/null
+++ b/LayoutTests/fast/scrolling/custom-scrollbar-style-applied.html
@@ -0,0 +1,38 @@
+<!DOCTYPE HTML>
+<script src="../../resources/js-test.js"></script>
+<style>
+::-webkit-scrollbar {
+ width: 250px;
+ height: 250px;
+}
+::-webkit-scrollbar-track {
+ -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
+ -webkit-border-radius: 10px;
+ border-radius: 10px;
+}
+::-webkit-scrollbar-thumb {
+ -webkit-border-radius: 1px;
+ background: rgba(255,0,0,0.8);
+ -webkit-box-shadow: inset 0 0 1px rgba(255,250,0,0.5);
+}
+#fill {
+ background-color: #ccd;
+ left: 0;
+ top: 0;
+ right: 0;
+ bottom: 0;
+ position: absolute;
+}
+#space {
+ width: 1000px;
+ height: 1000px;
+}
+</style>
+<div id="fill"></div>
+<div id="space"></div>
+<script>
+ var fill = document.querySelector("#fill");
+ description("Tests that Styles are applied to custom scrollbar.");
+ shouldBe("fill.clientWidth", "550");
+ shouldBe("fill.clientHeight", "350");
+</script>
« no previous file with comments | « no previous file | LayoutTests/fast/scrolling/custom-scrollbar-style-applied-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698