w3c / csswg-drafts

CSS Working Group Editor Drafts
https://drafts.csswg.org/
Other
4.48k stars 662 forks source link

[css-inline-3] Sizing Inlines to fit fallback glyphs #5226

Open fantasai opened 4 years ago

fantasai commented 4 years ago

When glyphs from multiple fonts are mixed, as is reasonably common in mixed-script text, a background drawn behind an inline box is only drawn to fit the first available font. This gives consistent sizing across inline boxes, but might not end up fitting all the text. (This effect will likely be exaggerated by the use of leading-trim.) Do we want a switch to allow the height of an inline box to consider fallback glyphs? (Would we want this to be the default when leading-trim is used?)

dbaron commented 1 year ago

A few thoughts: