Skip to content

API to return whether a selector has non-standard syntax. #135

Closed

Description

@chriseppstein
  1. add a strict parse mode so that any non-standard syntax is an immediate error.
  2. When not strict, it should be possible to find which nodes contain non standard syntax and for complex nodes like Attribute, which part(s) are violating the css spec.

Activity

  1. alexander-akait commented on Mar 30, 2018

    @alexander-akait
    Collaborator

    @chriseppstein Also maybe we can support non standard comments //?

  2. chriseppstein commented on Mar 30, 2018

    @chriseppstein
    ContributorAuthor

    I'd rather postcss filter that out so that it's not part of the rule's selector value.

  3. chriseppstein commented on May 16, 2018

    @chriseppstein
    ContributorAuthor

    postcss/postcss#1149

    TIL about postcss-scss. I think the selector parser and tokenizer should be updated to have a syntax option and then the parser should non-standard syntax correctly or error out based on the current syntax setting. Right now it's all mashed together and unpredictable.

  4. MoOx commented on Nov 8, 2026

    @MoOx
    Collaborator

    Parked in #357, which collects the design issues that would need a major. This is not a rejection: if it blocks you, say so in #357 with a concrete use case and it can be taken back out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions