Bug 265287 - lh unit is sometimes computed before line-height is resolved
Summary: lh unit is sometimes computed before line-height is resolved
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Tim Nguyen (:ntim)
URL:
Keywords: InRadar
: 267185 (view as bug list)
Depends on:
Blocks:
 
Reported: 2023-11-23 06:42 PST by zalan
Modified: 2024-01-06 19:05 PST (History)
5 users (show)

See Also:


Attachments
Incorrect background sizing (587 bytes, text/html)
2023-11-23 06:42 PST, zalan
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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