Bug 252108 - Computed value of `line-height: 1lh` affected by browser setting for minimum font size
Summary: Computed value of `line-height: 1lh` affected by browser setting for minimum ...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: Safari Technology Preview
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-02-11 05:26 PST by Dan
Modified: 2023-02-18 05:27 PST (History)
3 users (show)

See Also:


Attachments
Test case for line-height: 1lh (1.44 KB, text/html)
2023-02-11 05:26 PST, Dan
no flags Details

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