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

Unified 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, 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-setting-newstyle.html
diff --git a/third_party/WebKit/LayoutTests/scrollbars/custom-scrollbar-reconstruction-on-setting-newstyle.html b/third_party/WebKit/LayoutTests/scrollbars/custom-scrollbar-reconstruction-on-setting-newstyle.html
new file mode 100644
index 0000000000000000000000000000000000000000..22d46ccc0f96825d404aba914d931e89065d586c
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/scrollbars/custom-scrollbar-reconstruction-on-setting-newstyle.html
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<style>
+#scroller {
+ overflow: scroll;
+ width: 400px;
+ height: 400px;
+}
+#space {
+ width: 1200px;
+ height: 900px;
+}
+</style>
+<div id="scroller"><div id="space"></div></div>
+<script src="../resources/run-after-layout-and-paint.js"></script>
+<script>
+ var styleElement = document.createElement("style");
+ var sheet = document.head.appendChild(styleElement).sheet;
+ runAfterLayoutAndPaint(function() {
+ sheet.insertRule("::-webkit-scrollbar { width: 30px; height: 30px; }", 0);
+ sheet.insertRule("::-webkit-scrollbar-thumb { background: green; }", 1);
+ }, true);
+</script>

Powered by Google App Engine
This is Rietveld 408576698