You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This fails silently because we do not support keyframes API (which uses Compiled) inside of style attribute (which currently bypasses Compiled entirely?).
We also get some bizarre output for the animation property:
We should throw an error here instead.
Workaround for keyframes API in style attribute
Note that there is a workaround - move everything into the css attribute:
Note two: we do not support ternary operators, so we can't do type === 'top' ? slideInTopStyles : slideInBottomStyles in the css attribute just yet. One day!
Use of other Compiled APIs in style attribute
Additionally, using Compiled's css API (and potentially other Compiled APIs, like the cssMap API) also fails silently:
dddlr
changed the title
Fails silently when keyframes API is used in style attribute
Fails silently when css or keyframes API is used in style attribute
Jan 8, 2024
dddlr
changed the title
Fails silently when css or keyframes API is used in style attribute
Fails silently when Compiled APIs are used as values in style attribute
Jan 8, 2024
Keyframes API in style attribute
Take this example:
This fails silently because we do not support
keyframes
API (which uses Compiled) inside ofstyle
attribute (which currently bypasses Compiled entirely?).We also get some bizarre output for the
animation
property:We should throw an error here instead.
Workaround for keyframes API in style attribute
Note that there is a workaround - move everything into the
css
attribute:We can see that the output CSS is now correct:
Note two: we do not support ternary operators, so we can't do
type === 'top' ? slideInTopStyles : slideInBottomStyles
in thecss
attribute just yet. One day!Use of other Compiled APIs in style attribute
Additionally, using Compiled's
css
API (and potentially other Compiled APIs, like thecssMap
API) also fails silently:Regardless of what Compiled API is being used in the style attribute, we should throw an error.
The text was updated successfully, but these errors were encountered: