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

Side by Side 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 by rune 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 unified diff | Download patch
« no previous file with comments | « no previous file | LayoutTests/scrollbars/custom-scrollbar-changing-style-expected.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <style>
3 ::-webkit-scrollbar {
4 height: 10px;
5 width: 10px
6 }
7 ::-webkit-scrollbar-thumb {
8 background: rgba(255,0,0,0.8);
9 }
10 html {
11 overflow-y: scroll;
12 }
13 </style>
14 <div style="height:700px"></div>
15 <script>
16 var styleElement = document.createElement("style");
17 var sheet = document.head.appendChild(styleElement).sheet;
18 function addRule(selector, css){
19 var propText = Object.keys(css).map(function(p){
20 return p+":"+css[p]
21 }).join(";");
22 sheet.insertRule(selector + "{" + propText + "}", sheet.cssRules.length);
23 };
24 document.body.offsetTop;
25 addRule("::-webkit-scrollbar-thumb", {background: "rgba(13,53,178,0.8)",});
26 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/scrollbars/custom-scrollbar-changing-style-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698