[wpt-sync] Sync PR 62514 - Upstream jsdom regression tests
Categories
(Core :: DOM: Core & HTML, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox158 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
(Blocks 1 open bug, )
Details
(Whiteboard: [wptsync downstream])
Attachments
(1 file)
|
2.93 MB,
text/plain
|
Details |
Sync web-platform-tests PR 62514 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/62514
Details from upstream follow.
Domenic Denicola <d@domenic.me> wrote:
Upstream jsdom regression tests
Bring locally maintained jsdom regression coverage into the shared web-platform suite, covering DOM mutation and collections, CSS parsing and serialization, custom elements, HTML parsing and forms, SVG, and asynchronous APIs.
Extend existing tests where the new assertions belong, and add focused regressions for behavior not covered by the existing suite. Include specified behavior with implementation disagreements alongside interoperable cases.
This was generated by asking GPT-6 Astra Medium to go through jsdom's test suite and upstream all tests that either passed in both Chrome and Firefox, or passed in one of the two and had clear spec support. The latter are listed below.
Tests only passing in one browser but which GPT-6 believes are correct per-spec
Results below are from WPT CI on Linux with Chrome dev 155.0.8040.2 and Firefox Nightly 157.0a1 (2026-09-08), using WPT’s browser preferences, which enable experimental features. They do not describe default browser settings; for example, Firefox’s month/week input support is enabled in this configuration. “Fail” means at least one subtest fails; “timeout” means the test does not complete.
WPT file Chromium Firefox Specification assessment css/css-backgrounds/background-shorthand-clip.htmlfail pass CSSOM shorthand serialization must preserve both origin and clip values. Specification css/cssom/CSSImportRule-media-identity.htmlfail pass The media getter returns the imported stylesheet’s media object. Specification css/cssom/CSSKeyframeRule-keyText.htmlpass fail An invalid keyframe selector must throw SyntaxError. Specification css/cssom/MediaList-parsing.htmlpass fail An invalid media query parses as not all. Specification css/cssom/getComputedStyle-pseudo-shadow.htmlfail pass CSSOM requires empty declarations for these ::part/::slotted arguments. Specification custom-elements/shadow-descendant-lifecycle-order.htmlpass fail Removal visits shadow-including descendants in tree order. Specification dom/nodes/Element-setAttributeNodeNS.htmlfail pass Replacing an attribute changes its qualified name without disturbing attribute-list ordering; name lookup must follow the updated list. Specification dom/nodes/namespaced-attribute-mutations.htmlpass fail Event handler content attributes have no namespace. Specification domparsing/DOMParser-xml-character-entities.htmlfail pass XML failure requires a parsererror root in the specified namespace. Specification html/browsers/the-window-object/named-access-on-the-window-object/live-collection.htmlpass fail Multiple named matches produce a live HTMLCollection. Specification html/dom/documents/dom-tree-accessors/nameditem-adoption.htmlfail pass Named properties include qualifying elements in the new document tree. Specification html/dom/documents/dom-tree-accessors/nameditem-supported-property-names-order.htmlpass fail A contributing element’s id precedes its name. Specification html/semantics/document-metadata/the-style-element/no-browsing-context.htmlpass fail Without a browsing context, computed declarations are empty. Specification html/semantics/embedded-content/the-iframe-element/bad-src-means-about-blank.htmlfail pass An unparseable src falls back to about:blank. Specification html/semantics/embedded-content/the-iframe-element/iframe-error-status-fires-load.htmlpass timeout HTTP error status does not by itself suppress the iframe load event. Specification html/semantics/forms/the-datalist-element/input-list-detached.htmlpass fail The datalist lookup uses the input’s tree, including a detached tree. Specification html/semantics/forms/the-label-element/labels-live-attribute-changes.htmlpass fail The labels NodeList must remain live as associations change. Specification svg/struct/scripted/element-symbol.htmlpass fail A symbol establishes an SVG viewport for its children. Specification
| Assignee | ||
Updated•2 months ago
|
| Assignee | ||
Comment 1•2 months ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/#/jobs?repo=try&revision=17a20d96d85705c62250f591046ee52d8c2f57cc
| Assignee | ||
Comment 2•2 months ago
|
||
CI Results
Ran 11 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 16168 tests and 1 subtests
Status Summary
Firefox
OK : 301[GitHub] 8769[Gecko-windows11-32-25h2-opt] 8960[Gecko-windows11-64-25h2-opt] 8964[Gecko-linux2404-64-debug] 8965[Gecko-linux2404-64-opt]
PASS : 478[Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt, Gecko-windows11-32-25h2-debug] 1224[GitHub] 5642[Gecko-android-em-14-x86_64-debug-geckoview] 5645[Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview] 5679[Gecko-windows11-64-25h2-debug] 245549[Gecko-windows11-32-25h2-opt] 251880[Gecko-windows11-64-25h2-opt] 251881[Gecko-linux2404-64-debug] 251897[Gecko-linux2404-64-opt]
FAIL : 14[GitHub] 1376[Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview] 1377[Gecko-android-em-14-x86_64-debug-geckoview] 1425[Gecko-windows11-64-25h2-debug] 17844[Gecko-windows11-32-25h2-opt] 19479[Gecko-linux2404-64-opt] 19501[Gecko-windows11-64-25h2-opt] 19504[Gecko-linux2404-64-debug]
PRECONDITION_FAILED: 27
TIMEOUT : 1[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-64-25h2-debug] 3[GitHub] 6[Gecko-windows11-32-25h2-opt] 7[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-64-25h2-opt]
ERROR : 2[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-windows11-64-25h2-debug] 23[Gecko-windows11-32-25h2-opt] 24[Gecko-linux2404-64-opt] 25[Gecko-windows11-64-25h2-opt] 28[Gecko-linux2404-64-debug]
NOTRUN : 48
Chrome
OK : 302
PASS : 1226
FAIL : 14
Safari
OK : 301
PASS : 1199
FAIL : 41
TIMEOUT : 1
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
Firefox-only Failures
- /html/semantics/embedded-content/the-iframe-element/iframe-error-status-fires-load.html [wpt.fyi]:
TIMEOUT- iframe should fire load event for 404 response and display error page:
TIMEOUT - iframe should fire load event for 503 response and display error page:
TIMEOUT
- iframe should fire load event for 404 response and display error page:
- /html/semantics/forms/the-datalist-element/input-list-detached.html [wpt.fyi]
- The list getter finds a datalist in a detached element tree:
FAIL
- The list getter finds a datalist in a detached element tree:
- /dom/nodes/namespaced-attribute-mutations.html [wpt.fyi]
- append a namespaced event handler attribute preserves an SVG event handler:
FAIL - change a namespaced event handler attribute preserves an SVG event handler:
FAIL - replace a namespaced event handler attribute preserves an SVG event handler:
FAIL
- append a namespaced event handler attribute preserves an SVG event handler:
- /css/cssom/MediaList-parsing.html [wpt.fyi]
- appendMedium with invalid input appends "not all":
FAIL
- appendMedium with invalid input appends "not all":
- /html/dom/documents/dom-tree-accessors/nameditem-supported-property-names-order.html [wpt.fyi]
- Values from id attributes precede values from name attributes when the same element contributes both:
FAIL
- Values from id attributes precede values from name attributes when the same element contributes both:
- /html/browsers/the-window-object/named-access-on-the-window-object/live-collection.html [wpt.fyi]
- A retained named-access collection becomes empty when all matches are removed:
FAIL - A retained named-access collection follows removal of the document element:
FAIL
- A retained named-access collection becomes empty when all matches are removed:
- /svg/struct/scripted/element-symbol.html [wpt.fyi]
- Viewport of children:
FAIL
- Viewport of children:
(See attachment for full changes)
Comment 4•2 months ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/ce5d46d6d63a
https://hg.mozilla.org/mozilla-central/rev/c8900b60a09b
Description
•