Skip to content

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

Description

@Loirooriol

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions