[wpt-sync] Sync PR 64120 - Paint timing: attribute anonymous content-image pseudos via GeneratingNode
Categories
(Testing :: web-platform-tests, task, P4)
Tracking
(firefox162 fixed)
| Tracking | Status | |
|---|---|---|
| firefox162 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 64120 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/64120
Details from upstream follow.
Jose Dapena Paz <jdapena@igalia.com> wrote:
Paint timing: attribute anonymous content-image pseudos via GeneratingNode
An image generated by "content: url(...)" on a pseudo element is laid
out as an anonymous LayoutImage, whose GetNode() is null.
ImagePaintTimingDetector::RecordImage() resolved non-background images
via GetNode(), and the soft navigation paint attribution tracker skipped
anonymous image objects, so these images were never LCP/ICP candidates
nor attributed to a soft navigation.Resolve them via LayoutObject::GeneratingNode(), as ElementTiming and
RecordImage() for background images already do. The record keeps keying
on the painting LayoutObject, so removing the anonymous image still
clears it. This also makes list-style-image markers, the other anonymous
LayoutImage, LCP/ICP candidates, matching ElementTiming.Both changes are gated on the new PaintTimingContentImagePseudoElements
runtime flag (experimental). It replaces AllImagesPaintedSentToElementTiming,
so a single flag covers all paint timing clients.
PaintTimingVisualizer::RecordObject() also uses GeneratingNode(), so
anonymous objects get a dom_node_id in traces.Tests: unit tests for the enabled, disabled, removal and list marker
cases; WPTs for hard-navigation LCP and for ICP with and without a
competing text node.Bug: 571179206
Change-Id: Ie58eb5f09081e8c706852fe18538b3da11442c61
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8130402
Reviewed-by: Scott Haseley \<shaseley@chromium.org>
Commit-Queue: José Dapena Paz \<jdapena@igalia.com>
Cr-Commit-Position: refs/heads/main@{#1725940}
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Updated•26 days ago
|
| Assignee | ||
Comment 1•26 days ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=114019
| Assignee | ||
Comment 2•24 days ago
|
||
CI Results
Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 88 tests and 1 subtests
Status Summary
Firefox
OK : 3[GitHub] 71[Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt] 72[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
PASS : 1[GitHub] 110[Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt] 111[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
FAIL : 2[GitHub] 10[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-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
TIMEOUT: 2
Chrome
OK : 2
FAIL : 2
TIMEOUT: 2
Safari
OK : 2
FAIL : 2
TIMEOUT: 2
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
New Tests That Don't Pass
- /largest-contentful-paint/animated/observe-video.tentative.html [wpt.fyi]:
SKIP - /largest-contentful-paint/observe-pseudo-element.tentative.html [wpt.fyi]:
SKIP - /largest-contentful-paint/video-data-uri.html [wpt.fyi]:
SKIP - /soft-navigation-heuristics/icp/tentative/character-data-append.html [wpt.fyi]:
SKIP - /soft-navigation-heuristics/icp/tentative/character-data-delete.html [wpt.fyi]:
SKIP - /soft-navigation-heuristics/icp/tentative/character-data-insert.html [wpt.fyi]:
SKIP - /soft-navigation-heuristics/icp/tentative/character-data-replace.html [wpt.fyi]:
SKIP - /soft-navigation-heuristics/icp/tentative/pseudo-element-background-image-with-text-mult-paints.html [wpt.fyi]:
SKIP - /soft-navigation-heuristics/icp/tentative/pseudo-element-background-image-with-text.html [wpt.fyi]:
SKIP - /soft-navigation-heuristics/icp/tentative/pseudo-element-background-image.html [wpt.fyi]:
SKIP - /soft-navigation-heuristics/icp/tentative/pseudo-element-content-image-with-text.html [wpt.fyi]:
OK[GitHub],SKIP[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-linux2404-64-debug,Gecko-linux2404-64-opt,Gecko-windows11-32-25h2-debug,Gecko-windows11-32-25h2-opt,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt] (Chrome:OK, Safari:OK)- InteractionContentfulPaint supports adding text elements with content image pseudo elements:
FAIL(Chrome:FAIL, Safari:FAIL)
- InteractionContentfulPaint supports adding text elements with content image pseudo elements:
- /soft-navigation-heuristics/icp/tentative/pseudo-element-content-image.html [wpt.fyi]:
OK[GitHub],SKIP[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-linux2404-64-debug,Gecko-linux2404-64-opt,Gecko-windows11-32-25h2-debug,Gecko-windows11-32-25h2-opt,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt] (Chrome:OK, Safari:OK)- InteractionContentfulPaint considers pseudo elements with content images as candidates:
FAIL(Chrome:FAIL, Safari:FAIL)
- InteractionContentfulPaint considers pseudo elements with content images as candidates:
- /soft-navigation-heuristics/icp/tentative/pseudo-element-content-text.html [wpt.fyi]:
SKIP - /soft-navigation-heuristics/icp/tentative/text-area-typing.html [wpt.fyi]:
SKIP - /soft-navigation-heuristics/icp/tentative/text-node-append-does-not-affect-siblings.html [wpt.fyi]:
SKIP - /soft-navigation-heuristics/icp/tentative/text-node-modification-does-not-affect-siblings.html [wpt.fyi]:
SKIP - /largest-contentful-paint/animated/observe-animated-image-gif.tentative.html [wpt.fyi]
- Same origin animated image is observable and has a first frame.:
FAIL
- Same origin animated image is observable and has a first frame.:
- /largest-contentful-paint/animated/observe-animated-image-webp.tentative.html [wpt.fyi]
- Same origin animated image is observable and has a first frame.:
FAIL
- Same origin animated image is observable and has a first frame.:
- /largest-contentful-paint/animated/observe-animated-image.tentative.html [wpt.fyi]
- Same origin animated image is observable and has a first frame.:
FAIL
- Same origin animated image is observable and has a first frame.:
- /largest-contentful-paint/image-upscaling-empty-url.html [wpt.fyi]
- A background image smaller than the container should report the natural size:
FAIL
- A background image smaller than the container should report the natural size:
- /largest-contentful-paint/image-upscaling.html [wpt.fyi]
- A background image smaller than the container should report the natural size:
FAIL
- A background image smaller than the container should report the natural size:
- /largest-contentful-paint/initially-invisible-images.html [wpt.fyi]
- Image visibility: out-of-viewport images are observable by LargestContentfulPaint once they become visible.:
FAIL
- Image visibility: out-of-viewport images are observable by LargestContentfulPaint once they become visible.:
- /largest-contentful-paint/performance-entry-sequence.html [wpt.fyi]:
OK[Gecko-android-em-14-x86_64-debug-geckoview,Gecko-android-em-14-x86_64-opt-geckoview,Gecko-windows11-32-25h2-debug,Gecko-windows11-32-25h2-opt,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt],TIMEOUT[Gecko-android-em-14-x86_64-lite-opt-geckoview,Gecko-linux2404-64-debug,Gecko-linux2404-64-opt]- Exactly one LargestContentfulPaint entry is emitted per frame when a new candidate is rendered:
PASS[Gecko-android-em-14-x86_64-debug-geckoview,Gecko-android-em-14-x86_64-opt-geckoview,Gecko-windows11-32-25h2-debug,Gecko-windows11-32-25h2-opt,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt],TIMEOUT[Gecko-android-em-14-x86_64-lite-opt-geckoview,Gecko-linux2404-64-debug,Gecko-linux2404-64-opt]
- Exactly one LargestContentfulPaint entry is emitted per frame when a new candidate is rendered:
- /largest-contentful-paint/text-fragment-union.html [wpt.fyi]
- Text fragment union: wrapped text LCP size reflects the union of all line boxes.:
FAIL
- Text fragment union: wrapped text LCP size reflects the union of all line boxes.:
- /largest-contentful-paint/web-font-styled-text-resize-swap-after-interaction.html [wpt.fyi]
- LCP should be not updated if the web font styled text resize occurs after an interaction happens:
FAIL
- LCP should be not updated if the web font styled text resize occurs after an interaction happens:
- /largest-contentful-paint/web-font-styled-text-resize-swap-subnode.html [wpt.fyi]
- LCP should be updated if the web font styled text resizes to be larger during the swap period:
FAIL
- LCP should be updated if the web font styled text resizes to be larger during the swap period:
- /largest-contentful-paint/web-font-styled-text-resize-swap.html [wpt.fyi]
- LCP should be updated if the web font styled text resizes to be larger during the swap period:
FAIL
- LCP should be updated if the web font styled text resizes to be larger during the swap period:
Tests Disabled in Gecko Infrastructure
- /largest-contentful-paint/animated/observe-video.tentative.html [wpt.fyi]:
SKIP - /largest-contentful-paint/observe-pseudo-element.tentative.html [wpt.fyi]:
SKIP - /largest-contentful-paint/video-data-uri.html [wpt.fyi]:
SKIP - /soft-navigation-heuristics/icp/tentative/character-data-append.html [wpt.fyi]:
SKIP - /soft-navigation-heuristics/icp/tentative/character-data-delete.html [wpt.fyi]:
SKIP - /soft-navigation-heuristics/icp/tentative/character-data-insert.html [wpt.fyi]:
SKIP - /soft-navigation-heuristics/icp/tentative/character-data-replace.html [wpt.fyi]:
SKIP - /soft-navigation-heuristics/icp/tentative/pseudo-element-background-image-with-text-mult-paints.html [wpt.fyi]:
SKIP - /soft-navigation-heuristics/icp/tentative/pseudo-element-background-image-with-text.html [wpt.fyi]:
SKIP - /soft-navigation-heuristics/icp/tentative/pseudo-element-background-image.html [wpt.fyi]:
SKIP - /soft-navigation-heuristics/icp/tentative/pseudo-element-content-image-with-text.html [wpt.fyi]:
OK[GitHub],SKIP[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-linux2404-64-debug,Gecko-linux2404-64-opt,Gecko-windows11-32-25h2-debug,Gecko-windows11-32-25h2-opt,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt] (Chrome:OK, Safari:OK) - /soft-navigation-heuristics/icp/tentative/pseudo-element-content-image.html [wpt.fyi]:
OK[GitHub],SKIP[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-linux2404-64-debug,Gecko-linux2404-64-opt,Gecko-windows11-32-25h2-debug,Gecko-windows11-32-25h2-opt,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt] (Chrome:OK, Safari:OK) - /soft-navigation-heuristics/icp/tentative/pseudo-element-content-text.html [wpt.fyi]:
SKIP - /soft-navigation-heuristics/icp/tentative/text-area-typing.html [wpt.fyi]:
SKIP - /soft-navigation-heuristics/icp/tentative/text-node-append-does-not-affect-siblings.html [wpt.fyi]:
SKIP - /soft-navigation-heuristics/icp/tentative/text-node-modification-does-not-affect-siblings.html [wpt.fyi]:
SKIP
Comment 4•17 days ago
|
||
| bugherder | ||
Description
•