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 apply styles from tailwind-like classes like md:flex
#661
Comments
Found at least one part of the bug. This line in |
Also in |
basically all I did was add |
#661@patch: Take class selector escaping into account.
Thanks again for your contribution @petejodo! 🙂 The fix has been released. You can read more about the release here: |
Describe the bug
happy-dom
is not applying the styles of classes defined in a tailwind-like way These are classes thathave colon (
:
) separators likemd:flex
. I suspect the fundamental issue has to do with escaping becausethe CSS for these classes look like:
I created a repro repo here.
The test looks like:
The
Example
component looks like:I expect the test to pass but it isn't and is failing on this line:
To Reproduce
Steps to reproduce the behavior:
npm test
Expected behavior
The test should pass with the element in question on the failed line should be visible.
Device:
The text was updated successfully, but these errors were encountered: