-
-
Notifications
You must be signed in to change notification settings - Fork 608
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
fix: do not break selector with escaping #896
fix: do not break selector with escaping #896
Conversation
Codecov Report
@@ Coverage Diff @@
## master #896 +/- ##
==========================================
- Coverage 99.47% 99.23% -0.25%
==========================================
Files 10 10
Lines 381 391 +10
Branches 109 114 +5
==========================================
+ Hits 379 388 +9
- Misses 2 3 +1
Continue to review full report at Codecov.
|
fc6f1b3
to
acfe183
Compare
\\"3A\\": \\"_2CroCHBxlB1qbFlcySSx5w\\", | ||
\\"#fake-id\\": \\"_2E85FJStrx25rDG2lYWifC\\", | ||
\\":\`(\\": \\"_4_pn9LmAb2XtAy0kg4FN_\\", | ||
\\"1a2b3c\\": \\"_2LEttkwzH7jRE93Ku8MGqY\\", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome!
\\"class\\": \\"_1PSZ4tK4URrenXyNSoawrx\\", | ||
\\"class-duplicate-url\\": \\"_3YYoEr128Gk7ZgfRycu4tr\\", | ||
\\"two\\": \\"_1LWD9ZV4XMmN23IPiMONS3\\", | ||
\\"u-m+\\": \\"_3i3CD1fyX8bvzRt1H0IV-f\\", | ||
\\"-top\\": \\"_1fWEySWrY44TvDnJ8JNxnE\\", | ||
\\"#test\\": \\"Zmuw5k7Gg4hpgd6CVBEkq\\", | ||
\\"\\\\\\\\\\": \\"_3UVS-Zs6Sa7sP9yLR2EN58\\", | ||
\\"test\\": \\"_2mQhIWfQwYBHR8C-27Rb-E\\", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ID selectors still broken, WIP on this
Problem in :local(#\#fake-id) {
color: red;
} https://codepen.io/anon/pen/qvNzja?&editable=true (example with not) |
acfe183
to
9e29b69
Compare
9e29b69
to
3aab2ef
Compare
This PR contains a:
Motivation / Use-Case
Fix escaping in selectors
fixes #578
Breaking Changes
No
Additional Info
/cc @jquense Looks like all tests good, except some selectors we need fix before merge
postcss/postcss-selector-parser#174
postcss/postcss-selector-parser#175