[wpt-sync] Sync PR 65104 - ContainerTiming: only HTML elements can be container roots
Categories
(Testing :: web-platform-tests, task, P4)
Tracking
(firefox163 fixed)
| 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}
| Assignee | ||
Comment 1•9 days ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=123147
| Assignee | ||
Comment 2•9 days ago
|
||
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
- /container-timing/tentative/containertiming-svg-and-mathml-not-root.html [wpt.fyi]
- containerTiming and containerTimingIgnore are only exposed on HTMLElement.:
FAIL(Chrome:FAIL, Safari:FAIL) - containertiming on SVG and MathML elements does not report paints.:
FAIL(Chrome:FAIL, Safari:FAIL)
- containerTiming and containerTimingIgnore are only exposed on HTMLElement.:
- /container-timing/tentative/containertiming-with-child-svg-ignore.html [wpt.fyi]
- containertimingignore on an SVG element does not stop propagation to an HTML container root.:
FAIL(Chrome:FAIL, Safari:FAIL)
- containertimingignore on an SVG element does not stop propagation to an HTML container root.:
- /container-timing/tentative/containertiming-with-child-svg-image.html [wpt.fyi]
- Paint of an SVG image inside a container timing root is reported.:
FAIL(Chrome:PASS, Safari:FAIL)
- Paint of an SVG image inside a container timing root is reported.:
Comment 4•8 days ago
|
||
| bugherder | ||
Description
•