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

Side by Side Diff: third_party/WebKit/LayoutTests/scrollbars/custom-scrollbar-reconstruction-on-inserting-newstyle.html

Issue 2346213002: Update PseudoElements during recalcStyle. (Closed)
Patch Set: Update UpdatePseudoElements on recalcStyle Created 4 years, 2 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <style>
3 #scroller {
4 overflow: scroll;
5 width: 400px;
6 height: 400px;
7 }
8 #space {
9 width: 1200px;
10 height: 900px;
11 }
12 </style>
13 <script>
14 onload = () => { setTimeout(() => {
15 var sheet = document.querySelector("style").sheet;
16 var add = (css) => { sheet.insertRule(css, sheet.cssRules.length); };
17 add("#scroller::-webkit-scrollbar { width: 30px; height: 30px; }");
18 add("#scroller::-webkit-scrollbar-thumb { background: green; }");
19 }, 0); };
20 </script>
21 <div id="scroller"><div id="space"></div></div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698