Skip to content

Lack of whitespace between @container and (RULE) cause problem #5

@phanngl

Description

@phanngl

My first time filing an open source issue, please go easy on me :).

Using cqfill with PostCSS, when i leave a whitespace between @container and (RULE), the generated CSS code works. But when I remove the whitespace

@container(min-width: 700px) {
  .contained {
    /* styles applied when a container is at least 700px */
  }
}

which i think is valid, then the generated CSS become

@media--css-container and (min-width: 700px) {
...
}

The whitespace between @media and --css-container is gone and it does not work anymore.

Your thought on this ?

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