Skip to content

css formatting issue with css elements like @layer #1910

@nimo23

Description

@nimo23

Reproducer:

  1. go to https://developer.mozilla.org/en-US/docs/Web/CSS/@layer and copy into css generic editor:
@layer state {
  .alert {
    background-color: brown;
  }
  p {
    border: medium solid limegreen;
  }
}
  1. format the css
  2. the formatted code looks ugly and the following error is shown: at-rule or selector expected [css- ruleorselectorexpected]

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