W3C home > Mailing lists > Public > public-css-archive@w3.org > June 2016

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

From: Tab Atkins Jr. via GitHub <sysbot+gh@w3.org>
Date: Wed, 22 Jun 2016 06:10:29 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-227652601-1466575829-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.4.0 : Tuesday, 19 October 2021 01:30:20 UTC