Closed Bug 1869771 Opened 2 years ago Closed 2 years ago

:has() is not consistently applied in www.matuzo.at/blog/2022/100daysof-day50

Categories

(Core :: CSS Parsing and Computation, defect)

defect

Tracking

()

RESOLVED FIXED
123 Branch
Tracking Status
firefox123 --- fixed

People

(Reporter: emilio, Assigned: dshin)

References

()

Details

Attachments

(5 files, 1 obsolete file)

Attached image Screenshot

As reported in bug 418039 comment 82. See screenshot, border should be dotted.

David, can you look? This one is rather odd. Maybe some style sharing issue?

Flags: needinfo?(dshin)
Attached file Somewhat reduced test-case. (obsolete) —
Attached file Reduced test-case.
Attachment #9368406 - Attachment is obsolete: true
Attached file Minimized Test Case
  1. First .sib's .cousin goes into the cache
  2. Second .sib's first .cousin does style computation, then cascade, where we realize we can share because we match the 1)'s rules exactly while parents also share the style.
  3. The reused style loses information on being considered for :has() matching
  4. Second .sib's second .cousin now shares style with the first
Flags: needinfo?(dshin)
Assignee: nobody → dshin
See Also: → 1793012
Severity: -- → S3
Pushed by dshin@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/cac055166c6d Prevent rule-based style sharing on elements that considered a relative selector. r=emilio
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/43714 for changes under testing/web-platform/tests
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 123 Branch
Upstream PR merged by moz-wptsync-bot
Duplicate of this bug: 1880401
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: