Re: [csswg-drafts] [css-overflow-3] Specify extent of ink overflow (#8649)

@drott I presume all browsers must already compute glyph overhang extent, for the purpose of determining the size of composited layers, no? If I'm not mistaken, [here](https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/layout/ng/ng_ink_overflow.cc;drc=7fa0c25da15ae39bbd2fd720832ec4df4fee705a;l=450) is where chromium does that.

This code is unfamiliar to me, but it appears that chromium iterates over individual glyph bounds rather than relying on xMin etc. for the font. That probably doesn't bode well for the prospect of specifying glyph overhang interoperably.

I'm quite ignorant about font specifications, so I'm asking the most naive questions, but: can you think of any reliable way to describe the maximum possible extent of glyph rendering for a given block of text and a given font across *all* browsers?

-- 
GitHub Notification of comment by szager-chromium
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8649#issuecomment-1799773363 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 7 November 2023 19:37:21 UTC