Skip to content

[css-contain-3] container-type syntax implies you might need multiple values #7977

Closed
@mirisuzanne

Description

@mirisuzanne

Currently, the formal syntax for container-type is:

normal || [ size | inline-size ]

This implies you might want to use normal along side either size or inline-size. The only reason to do that would be if inline-size acted as an override to the normal behavior - in which case authors would need to re-assert normal inline-size as a way to query both styles and sizes of the container. But as far as I can tell, that's not the behavior described in the spec, or the desired behavior, or the way things work with the Chrome prototype of style queries. Instead, a container type of inline-size normal behaves the same as a container type of inline-size.

I think we should probably change the syntax to:

normal | size | inline-size

But, alternately, we could just add a note to clarify how this works.

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