Skip to content

[css-contain] Is it possible to apply containment inside @container? #6177

Closed
@mirisuzanne

Description

@mirisuzanne

Is this allowed, or does it lead to cyclic dependencies?

.parent, .child { contain: layout inline-size; }

@container (inline-size > 30em) {
  .child { contain: initial; }
  .grandchild { /* which container is queried? */ }  
}

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