Closed Bug 1769789 Opened 2 years ago Closed 2 years ago

[wpt-sync] Sync PR 34095 - Add checks for the caching invariant of element reflection

Categories

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

task

Tracking

()

RESOLVED FIXED
102 Branch
Tracking Status
firefox102 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 34095 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/34095
Details from upstream follow.

Manuel Rego Casasnovas <rego@igalia.com> wrote:

Add checks for the caching invariant of element reflection

@domenic asked for these checks in https://github.com/whatwg/html/pull/7934

Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core

CI Results

Ran 11 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 1 tests and 23 subtests

Status Summary

Firefox

OK : 1
PASS: 2
FAIL: 21

Chrome

OK : 1
PASS: 21
FAIL: 2

Safari

OK : 1
PASS: 2
FAIL: 21

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

  • /dom/nodes/aria-element-reflection.tentative.html [wpt.fyi]
    • aria-activedescendant element reflection: FAIL (Chrome: PASS, Safari: FAIL)
    • If the content attribute is set directly, the IDL attribute getter always returns the first element whose ID matches the content attribute.: FAIL (Chrome: PASS, Safari: FAIL)
    • Setting the IDL attribute to an element which is not the first element in DOM order with its ID causes the content attribute to be an empty string: FAIL (Chrome: PASS, Safari: FAIL)
    • Setting an element reference that crosses into a shadow tree is disallowed, but setting one that is in a shadow inclusive ancestor is allowed.: FAIL (Chrome: PASS, Safari: FAIL)
    • aria-errormessage: FAIL (Chrome: PASS, Safari: FAIL)
    • aria-details: FAIL (Chrome: PASS, Safari: FAIL)
    • Deleting a reflected element should return null for the IDL attribute and cause the content attribute to become stale.: FAIL (Chrome: PASS, Safari: FAIL)
    • Changing the ID of an element causes the content attribute to become out of sync.: FAIL (Chrome: PASS, Safari: FAIL)
    • Reparenting an element into a descendant shadow scope hides the element reference.: FAIL (Chrome: PASS, Safari: FAIL)
    • Reparenting referenced element cannot cause retargeting of reference.: FAIL (Chrome: PASS, Safari: FAIL)
    • Element reference set in invalid scope remains intact throughout move to valid scope.: FAIL (Chrome: PASS, Safari: FAIL)
    • aria-labelledby.: FAIL (Chrome: FAIL, Safari: FAIL)
    • aria-controls.: FAIL (Chrome: PASS, Safari: FAIL)
    • aria-describedby.: FAIL (Chrome: PASS, Safari: FAIL)
    • aria-flowto.: FAIL (Chrome: PASS, Safari: FAIL)
    • aria-owns.: FAIL (Chrome: PASS, Safari: FAIL)
    • shadow DOM behaviour for FrozenArray element reflection.: FAIL (Chrome: PASS, Safari: FAIL)
    • Moving explicitly set elements across shadow DOM boundaries.: FAIL (Chrome: PASS, Safari: FAIL)
    • Moving explicitly set elements around within the same scope, and removing from the DOM.: FAIL (Chrome: PASS, Safari: FAIL)
    • Attaching element reference before it's inserted into the DOM.: FAIL (Chrome: PASS, Safari: FAIL)
    • Cross-document references and moves.: FAIL (Chrome: PASS, Safari: FAIL)
Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/8b254f9137dc
[wpt PR 34095] - Add checks for the caching invariant of element reflection, a=testonly
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 102 Branch
You need to log in before you can comment on or make changes to this bug.