Skip to content

Support for :global() rules #4

Description

@turadg

Something like this within a component:

const globals = css`
  :global() {
    html {
      font-size: large;
    }
  }
`;
errors with:

Error: Syntax error: Selector "html" is not pure (pure selectors must contain at least one local class or id)


It works okay if it's in an `_app.tsx` file.

Known issue in https://github.com/callstack/linaria/issues/589#issuecomment-730219118

Documenting here for anyone coming to this project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions