Bug 299849
| Summary: | [LCP][Gardening] web-font-styled-text-resize-swap-after-interaction.html now passes | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Simon Fraser (smfr) <simon.fraser> |
| Component: | Layout and Rendering | Assignee: | Tim Nguyen (:ntim) <ntim> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | bfulgham, ntim, simon.fraser, webkit-bug-importer, zalan |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Simon Fraser (smfr)
This test adds some CSS that references a custom font on an input event, then awaits document.fonts.ready, then checks that there's a resource timing entry for the font in performance.getEntriesByName(). Something here doesn't work in WebKit.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Simon Fraser (smfr)
We don't seem to replace the ready promise per https://drafts.csswg.org/css-font-loading/#switch-the-fontfaceset-to-loading
Radar WebKit Bug Importer
<rdar://problem/161623318>
Tim Nguyen (:ntim)
Alexsander fixed the ready promise bug in: https://github.com/WebKit/WebKit/commit/04a74bd9c97a07e7428c2df4794ad0f3532099a8
Tim Nguyen (:ntim)
Seems to be passing in wpt.fyi, retitling to reflect that: https://wpt.fyi/results/largest-contentful-paint/web-font-styled-text-resize-block.html?label=master&label=experimental&product=safari-230%20preview&aligned&view=interop&q=label%3Ainterop-2025-core-web-vitals
Tim Nguyen (:ntim)
Pull request: https://github.com/WebKit/WebKit/pull/52602
EWS
Committed 301762@main (d3dafe8cdd18): <https://commits.webkit.org/301762@main>
Reviewed commits have been landed. Closing PR #52602 and removing active labels.