This repository has been archived by the owner on Oct 10, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 268
react.js support #29
Comments
What's stripping |
I thought it was react, it is actually my browser (chrome) that removes it. |
If it's being removed it's probably invalid, make sure it has the quotes: .img {
object-fit: contain;
font-family: 'object-fit: contain'; /*correct*/
} This is invalid CSS: .img {
object-fit: contain;
font-family: object-fit: contain; /*wrong*/
} In JS: img.style.fontFamily = "'object-fit: contain'"; /* correct */
img.style.fontFamily = "object-fit: contain"; /* wrong */ |
You're right! I was missing the quotes! Thanks! |
imagoiq
pushed a commit
to MediaComem/l2020
that referenced
this issue
Mar 31, 2017
It's works with react-jss. Thank you. |
is not working |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hello I'd like to use this for a React.js application where i have object-fit and object-position for a spritesheet.
I have my react component programmatically set the style. React will however automagically strip fontFamily:.. from the element. Would it be possible to come around this?
The text was updated successfully, but these errors were encountered: