Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attribute selector with pipe gets mangled #229

Open
papandreou opened this issue Jul 25, 2020 · 1 comment
Open

Attribute selector with pipe gets mangled #229

papandreou opened this issue Jul 25, 2020 · 1 comment

Comments

@papandreou
Copy link

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

@alexander-akait
Copy link
Collaborator

Yes, related, feel free to send a PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants