Bug 219735 - Implement ascent-override, descent-override, and line-gap-override
Summary: Implement ascent-override, descent-override, and line-gap-override
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Text (show other bugs)
Version: Other
Hardware: Unspecified Unspecified
: P2 Enhancement
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-12-10 02:39 PST by Tobi Reif
Modified: 2021-04-15 01:32 PDT (History)
4 users (show)

See Also:


Attachments
the general issue (12.17 KB, image/png)
2021-02-15 01:52 PST, Tobi Reif
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tobi Reif 2020-12-10 02:39:31 PST
It would be very useful if you could implement ascent-override, descent-override, and line-gap-override.

More info:

https://bugs.chromium.org/p/chromium/issues/detail?id=800693
(especially comments #20, #30 and #31)

https://tobireif.com/non_site_stuff/test_case_for_font_position_report_yet_another_font/

https://www.w3.org/TR/css-fonts-4/#font-metrics-override-desc
Comment 1 Tobi Reif 2020-12-11 02:31:31 PST
Chrome supports it (tested on MacOS vs Windows).
Comment 2 Radar WebKit Bug Importer 2020-12-17 02:40:18 PST
<rdar://problem/72419793>
Comment 3 Tobi Reif 2021-01-08 03:33:03 PST
Here's one reason why it's important to implement this feature:

https://tobireif.com/posts/ensuring_the_correct_vertical_position_of_large_text/

(And there's another reason listed in the post below "Another use case".)
Comment 4 Tobi Reif 2021-02-15 01:52:30 PST
Created attachment 420285 [details]
the general issue

Given that the issue can be as severe as in the attached screenshot, please consider assigning a high priority to implementing this feature.
Comment 5 Tobi Reif 2021-03-23 03:43:55 PDT
Chrome and Edge support the properties, and they are currently getting implemented in Firefox:
https://bugzilla.mozilla.org/show_bug.cgi?id=1681691

I hope that they will get implemented in Safari soon.