Skip to content

Error When Using CSS Container Scroll-state Queries #454

@abdelfattahradwan

Description

@abdelfattahradwan

When using CSS container scroll-state queries, I get an error saying: ( expected css(css-lparentexpected).

The following snippet can be used to reproduce the issue:

<style>
  #my-container {
    container-type: scroll-state;
    container-name: my-container;
  }

  @media (pointer: fine) and (hover: hover) {
    @container my-container scroll-state(scrollable: y) {
      #my-list {
        padding-inline-end: calc(var(--spacing) * 2);
      }
    }
  }
</style>

The error is emitted on line 8, at column 29 (0-based index in the string is 180) and ends at column 41.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions