-
Notifications
You must be signed in to change notification settings - Fork 715
[css-inline-3] Define rounding behavior of lines in block direction for leading-trim
#4045
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
/cc @fantasai |
ried to look for the past discussions/investigations but could not find one, so from my memory. I think it's best for the font rendering engine to make the baseline (glyph origin) at the pixel boundary, so rounding should be applied to the baseline position, not to each metrics. In terms of the direction to round to, IIRC, in a discussion with someone in Edge team, he recommended to floor descent. i.e.; among the two options: used-ascent = floor(ascent), used-descent = ceil(height) - used-ascent I think @dbaron and @eaenet have expertises on this topic, any advices are appreciated. Note, the above two options become a little more complex when we start sub-pixel block positioning. In that case, we would like to snap the baseline (glyph origin) to physical pixel instead of ceiling height. We had some discussion on this, but not really started yet. A bit of concern is that maybe standardizing too much details of this can prevent innovation, but we can probably start from saying like "if UA is going to round, do this direction"? |
Found the feedback: crbug.com/938612. The designer says Blink floors half-leaging on the over side while other apps round it, but it's not clear whether the reporter knows the exact algorithm of other apps or just observing differences. |
CC @jfkthame |
Forking from #3978 (comment)
@litherum proposed to consider defining rounding behavior for the
leading-trim
property, and possibly for other future properties.The text was updated successfully, but these errors were encountered: