Closed Bug 1843103 Opened 2 years ago Closed 2 years ago

`:has` cousin style sharing avoidance is too strict

Categories

(Core :: CSS Parsing and Computation, defect)

defect

Tracking

()

RESOLVED FIXED
117 Branch
Tracking Status
firefox117 --- fixed

People

(Reporter: dshin, Assigned: dshin)

References

Details

Attachments

(1 file)

Previous code rejected cousin sharing for non-rightmost :has() too strictly, by outright refusing to insert it to style sharing cache, as we do with rightmost :has() styles.

Severity: -- → S3

Previous code actually could not distinguish when :has() is on the rightmost
side or not. This caused every candidate containing any :has() selector to be
outright refused from being inserted into style sharing cache.

Assignee: nobody → dshin
Status: NEW → ASSIGNED
Pushed by dshin@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e37baab57b13 Proper cousin style sharing for non-rightmost `:has()` selectors. r=emilio
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 117 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: