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

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

Issue 2346213002: Update PseudoElements during recalcStyle. (Closed)
Patch Set: Rebase to latest 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 <div id="scroller"><div id="space"></div></div>
14 <script src="../resources/run-after-layout-and-paint.js"></script>
15 <script>
16 var styleElement = document.createElement("style");
17 var sheet = document.head.appendChild(styleElement).sheet;
18 runAfterLayoutAndPaint(function() {
19 sheet.insertRule("::-webkit-scrollbar { width: 30px; height: 30px; }", 0 );
20 sheet.insertRule("::-webkit-scrollbar-thumb { background: green; }", 1);
21 }, true);
22 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698