Closed Bug 1759031 Opened 2 years ago Closed 8 months ago

New wpt failures in /css/selectors/invalidation/user-action-pseudo-classes-in-has.html

Categories

(Core :: CSS Parsing and Computation, defect)

defect

Tracking

()

RESOLVED FIXED
121 Branch
Tracking Status
firefox121 --- fixed

People

(Reporter: wpt-sync, Assigned: dshin)

References

(Blocks 1 open bug, Regressed 1 open bug)

Details

(Whiteboard: [wpt], [wptsync upstream])

Attachments

(1 file)

Syncing wpt PR 32950 found new untriaged test failures in CI

Tests Affected

New Tests That Don't Pass

/css/selectors/invalidation/user-action-pseudo-classes-in-has.html
Invalidation with :focus, :focus-within, :focus-visible in :has(): FAIL (Chrome: FAIL, Safari: PASS)

CI Results

Gecko CI (Treeherder)
GitHub PR Head

Notes

These updates will be on mozilla-central once bug 1756776 lands.

Note: this bug is for tracking fixing the issues and is not
owned by the wpt sync bot.

This bug is linked to the relevant tests by an annotation in
https://github.com/web-platform-tests/wpt-metadata. These annotations
can be edited using the wpt interop dashboard
https://jgraham.github.io/wptdash/

If this bug is split into multiple bugs, please also update the
annotations, otherwise we are unable to track which wpt issues are
already triaged. Resolving as duplicate or closing this issue should
be cause the bot to automatically update or remove the annotation.

Depends on: has-pseudo
Severity: -- → S3
See Also: → 1827164

The framework being used is not supported by us, it seems:

Uncaught (in promise) Error: action_sequence() is not implemented by testdriver-vendor.js
    action_sequence http://127.0.0.1:8000/resources/testdriver.js:906
    action_sequence http://127.0.0.1:8000/resources/testdriver.js:395
    send http://127.0.0.1:8000/resources/testdriver-actions.js:99
    <anonymous> http://127.0.0.1:8000/css/selectors/invalidation/user-action-pseudo-classes-in-has.html:116
Depends on: 1862735

The error message I see is assert_equals: subject1 should be skyblue expected "rgb(135, 206, 235)" but got "rgb(0, 0, 255)".

As noted in the other issue we definitely implement testdriver support. Are you running via mach wpt or trying to load the test manually using mach wpt-serve? The latter doesn't work for these tests.

Ah, ok, that's my bad - wpt-hosted test does the same so that's what I thought was more accurate.

Ah... The current failure mode can be explained by bug 1293741.
As that bug implies, it has more to do with how we handle :active more so than :has.

See Also: → 1293741

Previously, the test relied upon event listener to listen to related events:
e.g. mousedown event on Actions().pointerDown(). However, as comments in
https://github.com/whatwg/html/issues/7578 indicate when :active matches
does not seem to be interoperable across browsers with different inputs.
Instead rely on the action sequence being completed, as done with a simliar
test, html/semantics/selectors/pseudo-classes/active-disabled.html.

Assignee: nobody → dshin
Status: NEW → ASSIGNED
Pushed by dshin@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/ab075d8118ae
Let `user-action-pseudo-classes-in-has.html` rely on actions being completed. r=emilio
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/43122 for changes under testing/web-platform/tests
Whiteboard: [wpt] → [wpt], [wptsync upstream]
Regressions: 1864542
Upstream PR was closed without merging
Flags: needinfo?(dshin)
Pushed by dshin@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/adc6a6f51dfa
Let `user-action-pseudo-classes-in-has.html` rely on actions being completed. r=emilio
Status: ASSIGNED → RESOLVED
Closed: 8 months ago
Resolution: --- → FIXED
Target Milestone: --- → 121 Branch
Upstream PR merged by moz-wptsync-bot
Upstream PR merged by moz-wptsync-bot
Blocks: 1866075
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: