Closed Bug 1834393 Opened 2 years ago Closed 2 years ago

Make :has() not experimental

Categories

(Core :: CSS Parsing and Computation, task)

task

Tracking

()

RESOLVED DUPLICATE of bug 418039

People

(Reporter: adjenks, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0

Steps to reproduce:

Try to use :has()

Actual results:

It's not enabled by default.

Expected results:

It should be on by default, even if the parsing is partially broken.
I understand that you can't use the partial selector syntax like :has(>p) because it doesn't understand ">p", but I would rather it partially work than just not work at all. Maybe issue a warning in the console when it's detected or something. All the other major browsers support it and I've been waiting for this forever. Please enable it by default even if it only partially works, because to me, not having it enabled is also basically broken if you're comparing it to other browsers.

The feature in question: https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Experimental_features#has_pseudo-class

Description of why the implementation isn't perfect: https://bugzilla.mozilla.org/show_bug.cgi?id=1771896#c1

Basically I'd rather it half work by default, than not work at all. Or perhaps have a special :moz-has() selector to acknowledge that you're using a half implemented feature.

Could one of these things be done?

Status: UNCONFIRMED → RESOLVED
Type: enhancement → task
Closed: 2 years ago
Component: Untriaged → CSS Parsing and Computation
Duplicate of bug: has-pseudo
Product: Firefox → Core
Resolution: --- → DUPLICATE
Version: Firefox 102 → unspecified
You need to log in before you can comment on or make changes to this bug.