Closed Bug 2071265 Opened 2 months ago Closed 2 months ago

[wpt-sync] Sync PR 62514 - Upstream jsdom regression tests

Categories

(Core :: DOM: Core & HTML, task, P4)

task

Tracking

()

RESOLVED FIXED
158 Branch
Tracking Status
firefox158 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

(Blocks 1 open bug, )

Details

(Whiteboard: [wptsync downstream])

Attachments

(1 file)

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.html fail pass CSSOM shorthand serialization must preserve both origin and clip values. Specification
css/cssom/CSSImportRule-media-identity.html fail pass The media getter returns the imported stylesheet’s media object. Specification
css/cssom/CSSKeyframeRule-keyText.html pass fail An invalid keyframe selector must throw SyntaxError. Specification
css/cssom/MediaList-parsing.html pass fail An invalid media query parses as not all. Specification
css/cssom/getComputedStyle-pseudo-shadow.html fail pass CSSOM requires empty declarations for these ::part/::slotted arguments. Specification
custom-elements/shadow-descendant-lifecycle-order.html pass fail Removal visits shadow-including descendants in tree order. Specification
dom/nodes/Element-setAttributeNodeNS.html fail 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.html pass fail Event handler content attributes have no namespace. Specification
domparsing/DOMParser-xml-character-entities.html fail 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.html pass fail Multiple named matches produce a live HTMLCollection. Specification
html/dom/documents/dom-tree-accessors/nameditem-adoption.html fail pass Named properties include qualifying elements in the new document tree. Specification
html/dom/documents/dom-tree-accessors/nameditem-supported-property-names-order.html pass fail A contributing element’s id precedes its name. Specification
html/semantics/document-metadata/the-style-element/no-browsing-context.html pass fail Without a browsing context, computed declarations are empty. Specification
html/semantics/embedded-content/the-iframe-element/bad-src-means-about-blank.html fail pass An unparseable src falls back to about:blank. Specification
html/semantics/embedded-content/the-iframe-element/iframe-error-status-fires-load.html pass timeout HTTP error status does not by itself suppress the iframe load event. Specification
html/semantics/forms/the-datalist-element/input-list-detached.html pass fail The datalist lookup uses the input’s tree, including a detached tree. Specification
html/semantics/forms/the-label-element/labels-live-attribute-changes.html pass fail The labels NodeList must remain live as associations change. Specification
svg/struct/scripted/element-symbol.html pass fail A symbol establishes an SVG viewport for its children. Specification
Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core
Attached file Notable wpt changes —

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

(See attachment for full changes)

Status: NEW → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 158 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: