containerName property

String get containerName

The read-only containerName property of the CSSContainerRule interface represents the container name of the associated CSS at-rule.

For example, the value of containerName for the below is sidebar:

@container sidebar (min-width: 700px) {
  .card {
    font-size: 2em;
  }
}

Implementation

external String get containerName;