Skip to content

[css-sizing] The resolved value of min-size: auto should also be 0 when there is no box #3557

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Loirooriol opened this issue Jan 25, 2019 · 3 comments

Comments

@Loirooriol
Copy link
Contributor

From https://drafts.csswg.org/css-sizing/#valdef-width-auto, about min-width/height: auto,

For backwards-compatibility, the resolved value of this keyword is zero for boxes of all [CSS2] display types: block and inline boxes, inline blocks, and all the table layout boxes.

Both Firefox and Chromium also seem to resolve it to 0 for display: none/contents. I guess display: none needs it for backwards-compatibility, and display: contents should be consistent with none. So the spec should include these cases.

@Loirooriol Loirooriol added the css-sizing-3 Current Work label Jan 25, 2019
@fantasai
Copy link
Collaborator

Agenda+ to request confirmation.

@fantasai
Copy link
Collaborator

Proposed text: “It also resolves to zero when no box is generated.” This covers 'display: none', descendants of 'display: none', and 'display: contents'.

@css-meeting-bot
Copy link
Member

The CSS Working Group just discussed The resolved value of min-size: auto should also be 0 when there is no box, and agreed to the following:

  • RESOLVED: The resolved value of min-size: auto is 0 when there is no box
The full IRC log of that discussion <AmeliaBR> Topic: The resolved value of min-size: auto should also be 0 when there is no box
<AmeliaBR> github: https://github.com//issues/3557
<AmeliaBR> fantasai: Pretty straightforward. Wanted to cover elements with display: none, their children, and also elements with display: contents
<AmeliaBR> Rossen_: Resolving to 0 makes the most sense. Any disagreements?
<AmeliaBR> RESOLVED: The resolved value of min-size: auto is 0 when there is no box

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants