Skip to content

Selectors with a class after the pseudo-element #829

@bin1357

Description

@bin1357

Inconsistent behavior in the parser and strigifier when working with selectors with a class after the pseudo-element.

Expected behavior

Any output should be accepted as an input without errors

No error case

Input

.input::placeholder {
  &:not(.noAdaptiveTypography) {
    display: inline
  }
}

Output (get error case)

.input::placeholder:not(.noAdaptiveTypography) {
  display: inline;
}

Lightning CSS Playground

Error case

Input

.input::placeholder:not(.noAdaptiveTypography) {
  display: inline;
}

Output (get error case)

/* ERROR: Pseudo-elements like '::before' or '::after' can't be followed by selectors like 'Delim('.')' */

Lightning CSS Playground

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