Re: [csswg-drafts] [css-fonts-4] Feature for making text always fit the width of its parent

Changing font-stretch, especially using variable fonts, is another way to fit text into parent. Or compression during justification . So if there is a css property that instructs layout engine to fit, it should allow different methods and so likely be separate from font-size.

And this kind of functionality may not only be on line operation.  It may be useful for more advanced functionality, like optimal paragraph layout, line clamping, or simple ellipsis.

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

Received on Wednesday, 11 April 2018 17:56:17 UTC