Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSS nesting support #94

Open
Pomax opened this issue Mar 2, 2024 · 0 comments
Open

CSS nesting support #94

Pomax opened this issue Mar 2, 2024 · 0 comments

Comments

@Pomax
Copy link

Pomax commented Mar 2, 2024

https://caniuse.com/css-nesting has been part of the official CSS spec, and available in all browsers for about a year now (half a year if you only consider "without turning on a feature flag"), but it looks like this tool has not been updated yet to deal with it so it dies when it encounters CSS like this:

html {
  --flag: ./img/us-en.png;

  &[lang="en-GB"] {
  --flag: ./img/en-gb.png;
  }

  body {
    & > h1 {
      &:before {
        content: " ";
        background-image: url(var(--flag));
      }
      font-size: 123%;
    }
}

Which might look like sass, but is in fact pure, plain CSS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant