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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <iframe frameborder="0"></iframe>
3 <div id = "content">
4 <div style="width: 400px; height: 400px"></div>
5 </div>
6 <script>
7 var idoc = document.querySelector("iframe").contentDocument;
8 var sheet = idoc.head.appendChild(idoc.createElement("style")).sheet;
9 idoc.body.innerHTML = document.querySelector('#content').innerHTML;
10 document.body.offsetTop;
11 sheet.insertRule("::-webkit-scrollbar { width: 50px; height: 20px; }", 0);
12 sheet.insertRule("::-webkit-scrollbar-thumb { background: green; }", 1);
13 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698