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

Unified 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, 3 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
Index: third_party/WebKit/LayoutTests/scrollbars/custom-scrollbar-reconstruction-on-inserting-newstyle.html
diff --git a/third_party/WebKit/LayoutTests/scrollbars/custom-scrollbar-reconstruction-on-inserting-newstyle.html b/third_party/WebKit/LayoutTests/scrollbars/custom-scrollbar-reconstruction-on-inserting-newstyle.html
new file mode 100644
index 0000000000000000000000000000000000000000..86509c9bd568e1b876bc57b466749674bbba7236
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/scrollbars/custom-scrollbar-reconstruction-on-inserting-newstyle.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<style>
+#scroller {
+ overflow: scroll;
+ width: 400px;
+ height: 400px;
+}
+#space {
+ width: 1200px;
+ height: 900px;
+}
+</style>
+<script>
+onload = () => { setTimeout(() => {
+ var sheet = document.querySelector("style").sheet;
+ var add = (css) => { sheet.insertRule(css, sheet.cssRules.length); };
+ add("#scroller::-webkit-scrollbar { width: 30px; height: 30px; }");
+ add("#scroller::-webkit-scrollbar-thumb { background: green; }");
+}, 0); };
+</script>
+<div id="scroller"><div id="space"></div></div>

Powered by Google App Engine
This is Rietveld 408576698