Closed Bug 1827164 Opened 2 years ago Closed 1 year ago

:has() leaves hover highlighting active

Categories

(Core :: CSS Parsing and Computation, defect)

Firefox 113
defect

Tracking

()

RESOLVED DUPLICATE of bug 1792501

People

(Reporter: alberts, Unassigned)

References

Details

Attachments

(1 file)

Attached image image.png

Originally reported by nemo in https://bugzilla.mozilla.org/show_bug.cgi?id=418039#c69

Testcase demoing an issue where Firefox Nightly 2023-03-24 with :has() enabled leaves hover highlighting active (move down the rows in column E or F), or does not apply hover highlighting (move up from the bottom into the Y cells).
https://m8y.org/tmp/testcase500.xhtml

The mouse pointer is hovering the second row "stuff and more stuff". The first row in the screenshot should not be highlighted anymore.

Currently expected - invalidation doesn't work properly.

Severity: -- → S3
See Also: → 1759031

Thank you for filling this bug for me, I wasn't sure if it was new info or not.

Question to dshin - there were 2 buggy behaviours. One was not cleaning up (that seems like it could be described as invalidation) the other part was not highlighting when moving up from the bottom so that the content in "Y" cells should cause highlighting of the previous DOM row.

Does that 2nd part also qualify as "invalidation" 'cause it doesn't seem to involve any cleanup, it just doesn't highlight.

Invalidation in this context is "current styling is no longer valid" - we never think the background color should change to yellow.

Ok. Gotcha... I mean clearly it semi-works in case where the hover is on the element with the :has. In that case it does highlight, it just doesn't clean up.

Seems mildly different from case where hover is on an element without the :has and it doesn't check the related rules for that different part of the tree, but if they are all covered by same bug, cool ☺

Hopefully at least these are some interesting examples of something that (given the low impact) is now in a real-world system ☺

This seems fixed to me now, so can probably marked as a duplicate of bug 1792501.

Confirmed on Windows 10 + today's Nightly 119 - thanks :evilpie!

Status: NEW → RESOLVED
Closed: 1 year ago
Duplicate of bug: 1792501
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: