-
Notifications
You must be signed in to change notification settings - Fork 3
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
Does not work with className of fade:not(.show)
#8
Comments
You can fix this via
I am submitting a PR now. |
See #9. Once merged, please patch version bump If you could ping us back once done, that'd be great - then we can bump this https://github.com/posthtml/posthtml-inline-css/blob/master/package.json#L34 and the bump will be fixed in |
It's hard to say since this package doesn't have tests - but I think it would just not return matches if they didn't exist? |
The fix worked for me when manually implemented in my node_modules folder, so I think this might be best, unless you wrap that with a try/catch. |
Please read the documentation for supported features: https://github.com/posthtml/posthtml-match-helper Only a subset of CSS selectors are supported. |
The alternative is to wrap with a try/catch. I'll re-submit PR. |
@phloe please see updated PR, this simply wraps with a try/catch, which respects the existing setup/rules/supported features. |
I think the best strategy would be for posthtml-inline-css to strip pseudo selectors before handing them to the match helper - or wrap the block where it's used in try/catch. Just wrapping in try/catch will mean selectors that would have matched are left out of the inlined css - negating what you are trying to achieve by inlining :( Of course adding proper support for |
We can share a bug bounty reward for this over PayPal - or sponsor you on GitHub if you're interested in adding that! |
Actually - we're closing this as we don't need to inline CSS anymore. A majority of clients now support it, so we're dropping inline CSS support. Thank you! 🙏 |
If you have a
className
value offade:not(.show)
it will result in this error:The text was updated successfully, but these errors were encountered: