Css – Do any browsers support the CSS3 pseudo-element “marker”

browsercss

The spec specifies that one can modify list-item (li) markers using the pseudo-element "marker" like so:

li::marker { color: blue; }

But I can't seem to get it to work in any of my browsers.

Do any browsers support this? Or am I doing something wrong?

Best Answer

2021 update: all modern browsers have added support for ::marker

  • Firefox since v68
  • Safari since v11.1 (limited to color and font)
  • Chrome (and Edge) since v86
  • Opera since v72

https://developer.mozilla.org/en-US/docs/Web/CSS/::marker#browser_compatibility