Skip to content

[css-contain] container-type shouldn't allow mixing normal with other values #7669

Closed
@Loirooriol

Description

@Loirooriol

https://drafts.csswg.org/css-contain-3/#container-type

Value: normal || [ size | inline-size ]

But normal size and normal inline-size don't make sense.

normal establishes a query container for container style queries, but that's the default, included in size and inline-size:

Unless otherwise noted, all elements are query containers for the purpose container queries that do no require explicit containment (such as container style queries)

The definitions are even contradictory, e.g. with normal size, both of these apply:

The element is not a query container for any container size queries

Establishes a query container for container size queries

So the syntax should just be normal | size | inline-size.

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