Skip to content

SCSS interpreter in attribute lost $ #306

Closed

Description

@fisker
require('postcss-selector-parser')(node => console.dir(node.nodes[0].nodes[0].attribute)).processSync('[#{$b}]')

// '#{b}'

#{$b} is expected.

Activity

  1. alexander-akait commented on Feb 26, 2025

    @alexander-akait
    Collaborator

    @fisker Yeah, looks like a bug, do you want to send a fix?

  2. fisker commented on Feb 26, 2025

    @fisker
    Author

    I prefer someone more familar with the codebase can fix it.

  3. MoOx commented on Nov 8, 2026

    @MoOx
    Collaborator

    Duplicate of #211, which reports the same defect: the $ is dropped when it belongs to the attribute name. #336 is the open PR, and following #211 will track the fix.

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

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