Skip to content

[syntax-3] are at-rules allowed to nest inside of style rules #2752

@jonathantneal

Description

@jonathantneal

Are at-rules allowed to nest inside of style rules, per spec? If so, where is this defined?

Example usage:

body {
  margin: 20px;

    @media (min-width: 30em) {
        margin: 0;
    }
}

I’m asking because folks confuse this with being part of the nesting proposal. And, for my own part, I didn’t help disambiguate this (csstools/postcss-nesting#24).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions