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

Unified Diff: LayoutTests/scrollbars/custom-scrollbar-changing-style.html

Issue 702913002: Updating custom scrollbar style (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: addressed review comments Created 6 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: LayoutTests/scrollbars/custom-scrollbar-changing-style.html
diff --git a/LayoutTests/scrollbars/custom-scrollbar-changing-style.html b/LayoutTests/scrollbars/custom-scrollbar-changing-style.html
new file mode 100644
index 0000000000000000000000000000000000000000..7df76d2b4c5a2c8af3b99ab17aec7d4c9852321f
--- /dev/null
+++ b/LayoutTests/scrollbars/custom-scrollbar-changing-style.html
@@ -0,0 +1,36 @@
+<!DOCTYPE html>
+<style>
+::-webkit-scrollbar {
+ height: 10px;
+ width: 10px
+}
+::-webkit-scrollbar-thumb {
+ background: rgba(255,0,0,0.8);
+}
+html {
+ overflow-y: scroll;
+}
+</style>
+<script>
+ if (window.testRunner)
+ testRunner.waitUntilDone();
+ function addstyle(){
+ var addRule = (function(style){
+ var sheet = document.head.appendChild(style).sheet;
skobes 2014/11/07 00:13:59 I think this would be easier to understand if the
MuVen 2014/11/07 09:46:59 Done.
+ return function(selector, css){
+ var propText = Object.keys(css).map(function(p){
+ return p+":"+css[p]
+ }).join(";");
+ sheet.insertRule(selector + "{" + propText + "}", sheet.cssRules.length);
+ }
+ })(document.createElement("style"));
+
+ addRule("::-webkit-scrollbar-thumb", {
+ background: "rgba(13,53,178,0.8)",
+ });
+ if (window.testRunner)
+ testRunner.notifyDone();
+ };
+setTimeout(function() {addstyle();}, 1);
+</script>
+<div style="height:700px"></div>
« no previous file with comments | « no previous file | LayoutTests/scrollbars/custom-scrollbar-changing-style-expected.html » ('j') | Source/core/frame/FrameView.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698