cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
stratboy
Making moves
Status: Delivered

I'd like to ask devs when they think :has css selector will be finally fully implemented in firefox. In fact, it's the only browsers blocking this revolution in css authoring.

74 Comments
arttag
New member

Looks like it's enabled in FF119: https://bugzilla.mozilla.org/show_bug.cgi?id=1853701

fgriffith
Employee
Employee

We will have a few tweaks to follow-up in 120 but all in all, we are pleased to get Has() done.

stratboy
Making moves

Evvivaaa!!! Grazie! Thank you!

Guenni007
New member

hm ?  So, we are used to some special behaviour from IE / Edge, but Firefox should not be so far behind - right?

ScreenShot 2023-10-02 um 14.19.58.jpg

CLampe
Making moves

@Guenni007"Firefox should not be so far behind"

That's also what I thought when I first heard of the `:has()` selector, but apparently it's the way it is, although they say it's enabled by default in Firefox Developer Edition since a few days. I can't confirm that (I've manually enabled the flag `layout.css.has-selector.enabled` before updating and it's still shown in bold with the revert to default button besides it in about:config) but I hope that it'll roll out within this year and I'm confident that that will actually happen, at least before the end of 2024. 

nemurenai_tokyo
New member

Thanks for the work, can't wait to implement it ^^

vaheqelyan
New member

Thank you guys!

jnsnvt
New member

Thank you for all your hard work on this project. It's an absolute gamechanger for CSS

fgriffith
Employee
Employee

I'm just the manager and messenger. The real work and kudos belong to my team members David and Emilio in getting this done over the past 6–7 months. 🎊

 

Alex227722
New member
davtaylor
New member

Ok, I just tried in 119.0 release, and it is still disabled by default (only enabled on nightly build). 

Is there any guidance on when we can expect this to be in the standard desktop release?  Would it be planned for 120?

mmorgat
New member

It seems like the :

layout.css.has-selector.enabled

 Option in about:config is still not activated by default in the 119 public version that just got out.

The only way to have it by default is to use nightly.

fgriffith
Employee
Employee

We came across a few regressions and tweaks we needed to get solutions for. Current goal is to have has() by default in x121 now that release freeze is lifted, and to ride the trains (barring any surprises) to release.

 

Dev_bros
New member

they said only in nightly build .when has() was enabled in normal firefox browser?

johnnycadelco
New member

Any update on this yet?  Will it be available soon?

Still has to be enabled through the config flag.