Skip to content
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

[css-sizing] the resolved value of 'auto' is only 0 for min-size #3556

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

[css-sizing] the resolved value of 'auto' is only 0 for min-size #3556

Loirooriol opened this issue Jan 25, 2019 · 0 comments

Comments

@Loirooriol
Copy link
Contributor

https://drafts.csswg.org/css-sizing/#valdef-width-auto says

  • auto
    For width/height, specifies an automatic size. See the relevant layout module for how to calculate this.

    For min-width/min-height, specifies an automatic minimum size. Unless otherwise defined by the relevant layout module, however, it resolves to a used value of 0.

    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.

The 3rd paragraph doesn't mention width/height nor min-width/min-height, so it seems it applies to all of them. However, the resolved value of width/height: auto for css2 boxes is not 0 in general, see https://drafts.csswg.org/cssom/#ref-for-propdef-width

The 3rd paragraphs should be merged into the 2nd, or repeat that it's for the min-width/min-height properties.

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

2 participants