[wpt-sync] Sync PR 35415 - Fix flaky wpt test: css/selectors/invalidation/target-pseudo-in-has.html
Categories
(Core :: CSS Parsing and Computation, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox106 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
(Depends on 1 open bug, )
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 35415 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/35415
Details from upstream follow.
Byungwoo Lee <blee@igalia.com> wrote:
Fix flaky wpt test: css/selectors/invalidation/target-pseudo-in-has.html
Remove assertions after inserting #fragment2 to fix flaky result.
The removed assertions try to check whether the :target element is
updated by a DOM mutation (element insertion), and it fails because
there is no logic of updating the CSS target element at element
insertion time.The reason of passing the test is that the assertions pass
unintentionally when the parsing is finished while waiting for
requestAnimationFrame() since the CSS target element is updated after
the parsing is finished.The spec mentions that the CSS target element for each document is
updated while navigating, but it is unclear that the target element
can be lively updated by any DOM mutation.
- html.spec.whatwg.org/multipage/browsing-the-web.html#scroll-to-fragid
Bug: 1349538
Change-Id: Ifbaceb342bfaf6034acf3dbc453c23422d582a3eReviewed-on: https://chromium-review.googlesource.com/3822442
WPT-Export-Revision: cc6a10b6142191942dd03fb5cc32ac4f18e3fabb
| Assignee | ||
Updated•3 years ago
|
| Assignee | ||
Comment 1•3 years ago
|
||
| Assignee | ||
Comment 2•3 years ago
|
||
CI Results
Ran 0 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 1 tests and 1 subtests
Status Summary
Firefox
OK : 1
FAIL: 1
Chrome
OK : 1
PASS: 1
Safari
OK : 1
PASS: 1
Links
Details
Firefox-only Failures
- /css/selectors/invalidation/target-pseudo-in-has.html [wpt.fyi]
- CSS Selectors Invalidation: :target pseudo-class in :has() argument:
FAILlinked bug:Bug 1775494
- CSS Selectors Invalidation: :target pseudo-class in :has() argument:
New Tests That Don't Pass
- /css/selectors/invalidation/target-pseudo-in-has.html [wpt.fyi]
- CSS Selectors Invalidation: :target pseudo-class in :has() argument:
FAIL(Chrome:PASS, Safari:PASS)
- CSS Selectors Invalidation: :target pseudo-class in :has() argument:
Comment 4•3 years ago
|
||
| bugherder | ||
Description
•