Closed Bug 1846755 Opened 2 years ago Closed 1 year ago

:has invalidation WPT failure - target-pseudo-in-has.html

Categories

(Core :: CSS Parsing and Computation, defect, P3)

defect

Tracking

()

RESOLVED FIXED
121 Branch
Tracking Status
firefox121 --- fixed

People

(Reporter: dshin, Assigned: dshin)

References

Details

Attachments

(1 file)

This fails but not due to :has invalidation - in fact, the location of the assertion failure is:

fragmentLink("fragment").click();

assert_true(fragment.matches(":target"));
See Also: → 1792501

When the test is opened, all three line items are grey, and the first turns green when the inspector is opened.

I'm not sure that :target is guaranteed to change synchronously on fragment navigation. Test might need to wait on hashchange or so?

Severity: -- → S3
Depends on: 1792501
Priority: -- → P3
Blocks: has-pseudo

There's no guarantee on element.click() to :target invalidation happening
synchronously; wait for hashchange event to fire before testing for invalidation.

Assignee: nobody → dshin
Status: NEW → ASSIGNED
Pushed by dshin@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/748270842d82 Make target-pseudo-in-has.html wait for `hashchange` event. r=layout-reviewers,emilio
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/43005 for changes under testing/web-platform/tests
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 121 Branch
Upstream PR merged by moz-wptsync-bot
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: