Bug 225695

Summary: REGRESSION (Safari 14.1): Fractional CSS line-height value translates to rounded (floored) element height
Product: WebKit Reporter: Andreas <andreas>
Component: Layout and RenderingAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: ahmad.saleem792, andreas, bfulgham, karlcow, matt, mmaxfield, simon.fraser, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: Safari 14   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=261463
https://bugs.webkit.org/show_bug.cgi?id=261212
Attachments:
Description Flags
Safari 14.1 Inspector
none
Firefox 88.0.1 Inspector
none
Test element none

Description Andreas 2021-05-12 05:30:04 PDT
This behaviour is new in Safari 14 (14.1).

Example issue:

a <SPAN> element has font-size set to 16px and line-height set to 1.2 (via CSS).
The resulting height of the element was correctly computed to 19.2 (prior v14) but is now resulting 19.
Comment 1 Andreas 2021-05-12 10:22:59 PDT
Created attachment 428381 [details]
Safari 14.1 Inspector

Size is reported as 19px
Comment 2 Andreas 2021-05-12 10:25:40 PDT
Created attachment 428382 [details]
Firefox 88.0.1 Inspector
Comment 3 Andreas 2021-05-12 10:28:37 PDT
Created attachment 428383 [details]
Test element
Comment 4 Radar WebKit Bug Importer 2021-05-19 05:31:17 PDT
<rdar://problem/78201712>