-
-
Notifications
You must be signed in to change notification settings - Fork 82
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
prefixer middleware does not copy element type #262
Comments
Example code? |
import { compile, Middleware, middleware, prefixer, serialize, stringify } from 'stylis';
const stylis = (css: string, extraPlugins: Middleware[] = []) =>
serialize(compile(css), middleware([...extraPlugins, stringify]));
stylis(
`@keyframes a {
0% { left: 0px; }
100% { left: 100px; }
}
`,
[prefixer]
) The new keyframe rule generated by the |
Just a note about the current implementation - the third argument passed here is for the Looking into the codebase - all calls to |
Pending accidental fix with the next patch i'm working on. |
When running
prefixer
over an element node like a keyframes object, the prefixed version is created butelement.type
is not set to"@keyframes"
, it gets set to an empty stringThe text was updated successfully, but these errors were encountered: