Closed Bug 2095372 Opened 9 days ago Closed 8 days ago

[wpt-sync] Sync PR 65104 - ContainerTiming: only HTML elements can be container roots

Categories

(Testing :: web-platform-tests, task, P4)

task

Tracking

(firefox163 fixed)

RESOLVED FIXED
163 Branch
Tracking Status
firefox163 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Jose Dapena Paz <jdapena@igalia.com> wrote:

ContainerTiming: only HTML elements can be container roots

The containertiming and containertimingignore attributes were reflected
on Element, and pre-paint attribution accepted any Element as a root,
while the attribute change hooks, use counters and disconnect cleanup
only run for HTMLElement. An \<svg containertiming> root therefore
worked on first attach but went stale on any later change.

Match the spec [1]: reflect the attributes on HTMLElement, accept only
HTML elements as roots or ignore nodes, and type rootElement as
HTMLElement?. Container roots are HTMLElement throughout, from the
pre-paint tracker to the entry. SVG and MathML content still
contributes to an HTML ancestor root, so lastPaintedElement stays
Element?, like LCP and Element Timing.

The [Measure] use counters are renamed in place, keeping their values.

[1] https://w3c.github.io/container-timing/

Bug: 582381734
Change-Id: I0c128527f79abb486ed2b2792302d86d9d969fba
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8793434
Reviewed-by: Scott Haseley \<shaseley@chromium.org>
Commit-Queue: José Dapena Paz \<jdapena@igalia.com>
Cr-Commit-Position: refs/heads/main@{#1742986}

CI Results

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

Total 3 tests and 1 subtests

Status Summary

Firefox

OK : 3
FAIL: 4

Chrome

OK : 3
PASS: 1
FAIL: 3

Safari

OK : 3
FAIL: 4

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Pushed by wptsync@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/d6bb93040174 https://hg.mozilla.org/integration/autoland/rev/3827aa645ac2 [wpt PR 65104] - ContainerTiming: only HTML elements can be container roots, a=testonly
Status: NEW → RESOLVED
Closed: 8 days ago
Resolution: --- → FIXED
Target Milestone: --- → 163 Branch
You need to log in before you can comment on or make changes to this bug.