1
0
Fork 0
firefox/testing/web-platform/tests/css/css-view-transitions/navigation/custom-scrollbar-ref.html
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

41 lines
796 B
HTML

<!DOCTYPE html>
<title>View Transitions: custom scrollbar (ref)</title>
<link rel="help" href="https://drafts.csswg.org/css-view-transitions-2/">
<link rel="author" href="mailto:bokan@chromium.org">
<style>
.old {
width: 50vw;
height: 100vh;
position: fixed;
left: 0px;
top: 0px;
background: blue;
}
.new {
width: 50vw;
height: 100vh;
position: fixed;
left: 50vw;
top: 0px;
background: grey;
}
html {
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>
<div class="old"></div>
<div class="new"></div>