Skip to content

Attribute selector with pipe gets mangled #229

Open
@papandreou

Description

Context: cssnano/cssnano#925

console.log(require('postcss-selector-parser')().processSync('[ foo | bar ]'));
'[ foo  ]'

Expected output: [ foo | bar ].

Interestingly, it does work when removing some of the whitespace around the |:

  • [ foo| bar ] => [ foo|bar ]
  • [ foo|bar ] => [ foo|bar ]

But:

  • [ foo |bar ] => [ foobar ]

Maybe related to #200

Activity

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

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