Skip to content

Allow Sass statements in @font-face and keyframe-step bodies #11825

Description

@denbezrukov

Description

SCSS permits statements such as @include and @if inside @font-face blocks and keyframe steps. These hosts use declaration-oriented CSS body rules, so statement children can be rejected or interfere with following descriptors and declarations.

@mixin font-options {
  font-display: swap;
}

@font-face {
  @include font-options;
  @if true { font-weight: 400; }
  font-family: Example;
  src: url(example.woff2);
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    L-CSSLanguage: CSS and super languages

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions