Bug 219735

Summary: Implement ascent-override, descent-override, and line-gap-override
Product: WebKit Reporter: Tobi Reif <tobi>
Component: TextAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Enhancement CC: agafvv, chen.jingan, chrisjshull, fuliang8, jesse.bc, karlcow, kizmarh, mmaxfield, peter, rasec_1113, rik, webkit-bug-importer, webkitbugzilla, webkitbugzilla, webkit
Priority: P2 Keywords: BrowserCompat, InRadar
Version: Other   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 246579    
Attachments:
Description Flags
the general issue none

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.
Comment 6 Tobi Reif 2021-06-25 03:15:28 PDT
Chrome, Edge, and Firefox support it.

Safari now is the only major browser which doesn't support this feature.

Please implement it soon.
Comment 7 Rick 2022-06-22 04:03:10 PDT
+1 for Safari implementation!
Comment 8 Fu liang 2022-07-17 18:24:28 PDT
+1 for Safari implementation!
Comment 9 Roel Nieskens 2022-09-05 06:43:43 PDT
+1! Any news on when/if this will land?
Comment 10 Jesse Bennett-Chamberlain 2022-09-05 07:59:23 PDT
+1 these properties (along with size-adjust) would be useful for any application that allows users to change their preferred typeface.
Comment 11 Tim Nguyen (:ntim) 2022-10-15 08:41:57 PDT
*** Bug 229726 has been marked as a duplicate of this bug. ***
Comment 12 Cesar 2022-11-30 09:18:29 PST
+1 - Would like to see updates on this