Skip to content

[css-sizing] Production for values common to max/min/preferred widths and heights #13478

Description

@Crissov

Could css-sizing-3 please introduce something like <box-length> or <box-dimension> = <length-percentage [0,∞]> | min-content | max-content | fit-content(<length-percentage [0,∞]>) | <calc-size()>?

With that production, <'width'>, <'height'>, <'min-width'>, <'min-height'> could be simplified to auto | <box-dimension>, whereas <'max-width'>, <'max-height'> could become none | <box-dimension>. This would make the difference more noticeable.

css-sizing-4 can then add stretch | fit-content | contain to it.

css-logical refers to <'width'> and <'min-width'> and <'max-width'>. Although this is the future-safe way, it feels a bit weird that the height properties also use a width value.

css-flexbox could either keep its content | <'width'> value syntax for the flex-basis property, or switch to auto | content | <box-dimension>.

There may be other places affected.

Activity

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

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