| 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>
|
|
|