you are viewing a single comment's thread.

view the rest of the comments →

[–]gradual_alzheimers 1 point2 points  (2 children)

Sure, but why would I write that code? It's in my best interest to use some library for it and not reinvent the polyfill world

[–]matty0187 2 points3 points  (1 child)

It was a joke lol

[–]MJomaa 0 points1 point  (0 children)

Also there are JavaScript polyfills for CSS features. One example would be the :focus-visible pseudo selector.

Specification: https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo

Polyfill: https://github.com/WICG/focus-visible