Skip to content

CSS nesting support #94

Open
Open
@Pomax

Description

@Pomax

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions