Skip to content

Add support for @global #87

@jantimon

Description

@jantimon

There's a great proposal by @devongovett in css-modules/css-modules#390 to introduce an @global at-rule.

I believe it makes the code easier to read than :global and also helps in cases like #75 where :global lead to parsing errors.

@global {
  @keyframes fade {
    /* ... */
  }
}

Compared to the current approach:

@keyframes :global(fade) {
  /* ... */
}

What do you think about implementing this (in a backwards compatible way)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions