DEV Community

Anаѕ R.
Anаѕ R.

Posted on

Welcome to `::marker` Psudeo-Element!

A few days ago, ::marker psudeo-element became supported by Firefox 68.

I'm wondering now if:

  • ::marker [is/could be] able to change the default icon of radio buttons and check boxes in a web page in a standard way, without any trick or workaround? 🤔
  • ::marker is going to be a standard way to represent icons in web pages (e.g. in a toolbar or a pagination panel)?

Top comments (2)

Collapse
 
ahferroin7 profile image
Austin S. Hemmelgarn

Whatever happens with it, it's long-term usability is kind of dependent on whether Blink and WebKit add support or not.

Personally, I'd love to have it widely available. I'm particularly excited about the possibility of having icons that can be displayed conditionally without needing to add any HTML code for the icons themselves.

Collapse
 
linuxfuture profile image
Anаѕ R.

it's long-term usability is kind of dependent on whether Blink and WebKit add support or not.

Exactly. I hope we won't wait for so long for this.

having icons that can be displayed conditionally without needing to add any HTML code for the icons themselves.

You can use ::before for this purpose.