::-moz-range-track

Non-standard: This feature is not standardized. We do not recommend using non-standard features in production, as they have limited browser support, and may change or be removed. However, they can be a suitable alternative in specific cases where no standard option exists.

The ::-moz-range-track CSS pseudo-element is a Mozilla extension that represents the track (i.e., groove) in which the indicator slides in an of type="range".

Note: Using ::-moz-range-track with anything but an doesn't match anything and has no effect.

Syntax

css
::-moz-range-track {
  /* ... */
}

Examples

HTML

html

CSS

css
input[type="range"]::-moz-range-track {
  background-color: green;
}

Result

A range slider using this style might look something like this:

A range with the track green

Specifications

Not part of any standard.

Browser compatibility

See also