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

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

From: 一丝 via GitHub <sysbot+gh@w3.org>
Date: Wed, 15 Jun 2016 08:42:07 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-160368112-1465980126-sysbot+gh@w3.org>
yisibl has just created a new issue for 
https://github.com/w3c/csswg-drafts:

== [css-sizing] How to shrink to fit the width? ==
In this demo: http://jsbin.com/weqapufoyi/edit?html,css,output

![demo](https://img.alicdn.com/tps/TB1T6DLKpXXXXXraXXXXXXXXXXX-391-281.png)

Because span float will automatically wrap, how to make the parent 
element shrink to the "Expectation" effect.

Can we add a new width/height value(e.g. `width: auto-shrink`), or 
already have other solutions?

spec: https://drafts.csswg.org/css-sizing/#width-height-keywords


Please view or discuss this issue at 
https://github.com/w3c/csswg-drafts/issues/191 using your GitHub 
account
Received on Wednesday, 15 June 2016 08:42:11 UTC

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