Closed Bug 1793012 Opened 2 years ago Closed 1 years ago

:has() interacts poorly with style sharing

Categories

(Core :: CSS Parsing and Computation, defect)

defect

Tracking

()

RESOLVED FIXED
115 Branch
Tracking Status
firefox115 --- fixed

People

(Reporter: emilio, Assigned: dshin)

References

Details

Attachments

(1 file)

There seems to be a bug when the parent element is next to an element of the same type

example: https://codepen.io/yukulele/pen/GRdxwwx?editors=0100

Severity: -- → S3
See Also: → 1796954
Duplicate of this bug: 1796954

Another testcase likely in bug 1820835 comment 6.

Assignee: nobody → dshin

(In reply to David Shin[:dshin] from comment #4)

Another testcase likely in bug 1820835 comment 6.

Buggy/sloppy test on my part. No wonder it failed in ways I didn't expect.
Rewritten, it now fails in ways I'd expect it to at this point :)
Keep up the good work!

Attachment #9331018 - Attachment description: Bug 1793012: Do not use style sharing cache for any element that reached `:has()` in selector matching. r=emilio → Bug 1793012: Correct style sharing handling for any element that considered `:has()` in selector matching. r=emilio
Pushed by dshin@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/895d9ffe6269 Correct style sharing handling for any element that considered `:has()` in selector matching. r=emilio
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/40228 for changes under testing/web-platform/tests
Status: NEW → RESOLVED
Closed: 1 years ago
Resolution: --- → FIXED
Target Milestone: --- → 115 Branch
Regressions: 1835219
Upstream PR merged by moz-wptsync-bot
Blocks: 1835037
See Also: → 1869771
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: