4 ms·
Well, it's there in firefox, it's just off by default, just like it was in chrome until this release.. about:config layout.css.has-selector.enabled The off by
by capitainenemo 4y ago
Well, it's there in firefox, it's just off by default, just like it was in chrome until this release..
about:config
layout.css.has-selector.enabled
The off by default is presumably due to fact that spec was not exactly settled yet, at least judging by discussion here:
https://bugzilla.mozilla.org/show_bug.cgi?id=418039#c44 https://bugzilla.mozilla.org/show_bug.cgi?id=418039#c44
- clairity 4y agothanks! i was just last week looking for what the config might be to turn this on for firefox and didn't find it (didn't try very hard tho). i tried using firefox's experimental :has() on my personal css framework that's using all the latest features css features like :has(). on first glance, it looks like there are some bugs with firefox, but i'm excited that they're working on it. the simple parent selector case seems to work, but complex layout seems to confuse the layout engine. :has() is easily my most anticipated css feature since grid at least (wish safari would support subgrid!).
- capitainenemo 4y agoOne interesting thing about that Firefox bug is that they support pseudo inside :has() which sounds really useful, but that the currently in-flux spec has just banned that, so they'll have to turn it off.