The filled half of a range track
CaveatOnly Firefox has a pseudo-element for the part of the track behind the thumb. In Chromium and Safari the fill is a trick: a wide box-shadow thrown left from the thumb and cut off by overflow: hidden on the input. That overflow clips everything outside the input's box, so the thumb can never stand taller than the track. A big round thumb on a hairline track needs one line of script instead, writing the value into a custom property that a gradient reads.
FallbackWithout these rules the input keeps its native look and still works as a slider. If one brand colour on the filled side is all you wanted, accent-color does that in Chromium and Firefox with a single declaration. Use the shadow when you have restyled the whole track and the fill has to match it.
/* Firefox: a real pseudo-element */
input::-moz-range-progress {
background: var(--fill);
}
/* Chromium, Safari: a clipped shadow */
input { overflow: hidden; }
input::-webkit-slider-thumb {
/* 7px is half the thumb */
box-shadow: calc(-100vw - 7px) 0 0 100vw
var(--fill);
}