Bug 252108

Summary: Computed value of `line-height: 1lh` affected by browser setting for minimum font size
Product: WebKit Reporter: Dan <dan>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: mmaxfield, simon.fraser, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari Technology Preview   
Hardware: Unspecified   
OS: Unspecified   
Description Flags
Test case for line-height: 1lh none

Description Dan 2023-02-11 05:26:25 PST
Created attachment 464953 [details]
Test case for line-height: 1lh

A declaration of `line-height: 1lh` should technically imposed the line height of the parent element. 

However, when the element's font size is fixed up to respect the user's preferred minimum font size, its line height is (unexpectedly) increased proportionally, possibly related to: https://bugs.webkit.org/show_bug.cgi?id=174406

The attached test case contains two paragraphs each with a declaration of `line-height: 1lh`. When the user configures their minimum font size to 24px from Safari's settings, the line height of the two <p> elements gets out of sync with the parent's line height, and with each other.
Comment 1 Radar WebKit Bug Importer 2023-02-18 05:27:19 PST