Search code examples
cssfirefoxcss-selectorssettings

How do you enable :has() selector on Firefox


When I check the :has() CSS selector on caniuse.com, it tells me that since Firefox103 it has been

Supported in Firefox behind the layout.css.has-selector.enabled flag.

So how do I find this flag and enable it?


Solution

  • Go to the Firefox about:config page, then search and toggle layout.css.has-selector.enabled.

    enter image description here