| <!DOCTYPE html> |
| <html class="reftest-wait"> |
| <title>View Transitions: custom scrollbar</title> |
| <link rel="help" href="https://drafts.csswg.org/css-view-transitions-2/"> |
| <link rel="author" href="mailto:bokan@chromium.org"> |
| <link rel="match" href="custom-scrollbar-ref.html"> |
| <script src="/common/reftest-wait.js"></script> |
| <style> |
| @view-transition { |
| navigation: auto; |
| } |
| |
| html { |
| background: blue; |
| overflow: scroll; |
| } |
| |
| @layer { |
| ::-webkit-scrollbar { |
| background-color: hsl(0, 100%, 10%); |
| color: hsl(0, 100%, 90%); |
| } |
| ::-webkit-scrollbar-thumb { |
| background-color: hsl(0, 100%, 50%); |
| } |
| ::-webkit-scrollbar-corner { |
| background-color: hsl(0, 100%, 0%); |
| } |
| } |
| </style> |
| <script> |
| function runTest() { |
| const url = "resources/custom-scrollbar.html"; |
| window.location.replace(new URL(url, window.location)); |
| } |
| onload = () => requestAnimationFrame(() => requestAnimationFrame(runTest)); |
| </script> |
| </html> |