Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 578
Jason Bingham Avatar asked Sep 02 '25 16:09

Jason Bingham


2 Answers

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

enter image description here

like image 110
Cédric Avatar answered Sep 04 '25 07:09

Cédric


On latest version of Firefox version 121, they have implemented the :has(). Kindly refer the following link for the updates, https://www.mozilla.org/en-US/firefox/121.0beta/releasenotes/

like image 34
Vishnu Varthan Avatar answered Sep 04 '25 06:09

Vishnu Varthan