Bug 265287

Summary: lh unit is sometimes computed before line-height is resolved
Product: WebKit Reporter: zalan <zalan>
Component: CSSAssignee: Tim Nguyen (:ntim) <ntim>
Status: NEW ---    
Severity: Normal CC: ana.tudor.lhnh, koivisto, ntim, simon.fraser, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://github.com/web-platform-tests/wpt/pull/43873
Attachments:
Description Flags
Incorrect background sizing none

Description zalan 2023-11-23 06:42:12 PST
Created attachment 468741 [details]
Incorrect background sizing

It looks like at the time we compute the FillLayer size, we don't yet have the computed line-height value and we fallback to the primary font size (we believe the line-height value is normal).
Comment 1 Radar WebKit Bug Importer 2023-11-30 06:43:26 PST
<rdar://problem/118983248>
Comment 2 Tim Nguyen (:ntim) 2024-01-06 18:27:40 PST
*** Bug 267185 has been marked as a duplicate of this bug. ***
Comment 3 Tim Nguyen (:ntim) 2024-01-06 19:05:27 PST
Pull request: https://github.com/WebKit/WebKit/pull/22476
Comment 4 Tim Nguyen (:ntim) 2024-01-06 19:05:42 PST
Submitted web-platform-tests pull request: https://github.com/web-platform-tests/wpt/pull/43873