Skip to content

[css-contain] [css-sizing] [sizing-values] Allow sizing values like @container burgermenu (width < min-width) #9978

@codermapuche

Description

@codermapuche

Want allow the use of sizing values like max-content or min-content as units for @container rules.

This open the door to another world of possibles uses cases. Imagine a nav menu, current in desktop has flexbox horizontally and a hamburger menu in mobile.
Currently we need to know the width of the menu content for write the rules, if we can use max-content in the selector, we can activate the burger style when the menu can't be placed without scroll or wrap.
This is the gateway to be full responsive with dinamic content without javascript.

What you think?

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