Skip to content

[css-sizing] How to shrink to fit the width? #191

Open
@yisibl

Description

@yisibl

In this demo: http://jsbin.com/weqapufoyi/edit?html,css,output

demo

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

cc @dholbert @tabatkins @fantasai

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions