::scroll-marker {
background-color: white;
}
::scroll-marker:target-current {
background-color: black;
}`:target-current` CSS pseudo-class / notebook
`:target-current` CSS pseudo-class
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.