Skip to content

Support for vanilla CSS nesting #33

@scriptura

Description

@scriptura

Good morning,

Let's say I'm looking to transpile this valid CSS4 code:

.justify {
  hyphens: auto;

  @media (width > 35.01em) {
    text-align: justify;
  }
}

postcss-csso won't process it because of nesting:

CssSyntaxError: postcss-csso: /var/www/scriptura.github.io/styles/development/typography.css:108:10: Colon is expected

  106 |   hyphens: auto;
  107 | 
> 108 |   @media (width > 35.01em) {
      |          ^
  109 |     text-align: justify;
  110 |   }

In the meantime, I'm using another transpiler which does the bare minimum (removal of white spaces) but which doesn't cause me any problems...

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