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

Unified Diff: third_party/WebKit/LayoutTests/scrollbars/custom-scrollbar-reconstruction-on-inserting-style-sheet.html

Issue 2314593003: IFrame Scrollbar needs reconstruction. (Closed)
Patch Set: added test exceptions 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-style-sheet.html
diff --git a/third_party/WebKit/LayoutTests/scrollbars/custom-scrollbar-reconstruction-on-inserting-style-sheet.html b/third_party/WebKit/LayoutTests/scrollbars/custom-scrollbar-reconstruction-on-inserting-style-sheet.html
new file mode 100644
index 0000000000000000000000000000000000000000..9b22948386cf32914ca75f9a53101f8e832a7d0e
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/scrollbars/custom-scrollbar-reconstruction-on-inserting-style-sheet.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<iframe frameborder="0"></iframe>
+<div id = "content">
+<div style="width: 400px; height: 400px"></div>
+</div>
+<script>
+ var idoc = document.querySelector("iframe").contentDocument;
+ var sheet = idoc.head.appendChild(idoc.createElement("style")).sheet;
+ idoc.body.innerHTML = document.querySelector('#content').innerHTML;
+ document.body.offsetTop;
+ sheet.insertRule("::-webkit-scrollbar { width: 50px; height: 20px; }", 0);
+ sheet.insertRule("::-webkit-scrollbar-thumb { background: green; }", 1);
+ </script>

Powered by Google App Engine
This is Rietveld 408576698