Re: [csswg-drafts] [css-sizing] How to shrink to fit the width?

No, fit-content() won't work here.  fit-content is "try to be 
max-content size, clamped by min-content and the specified limit" (or 
in the case of the `fit-content` keyword, clamped above by the 
available space).  So using fit-content() will still make it the full 
size with empty space, as shown in the first example.  You can see 
this behavior today in floats - create a float containing a few very 
long words, and when they break, the float doesn't "tightly wrap".

Tight wrapping has been discussed in the past, but has never made it 
in yet.

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

Received on Wednesday, 22 June 2016 06:10:33 UTC