Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-view-transitions/navigation/custom-scrollbar.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html class="reftest-wait">
<title>View Transitions: custom scrollbar</title>
<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>