I'm using javaScript setProperty(propertyName, value) a lot and it works perfectly until I want to set properties like justifyContent when using flexboxes.
It does work with the propertyName 'flexDirection' - I can change from row to column or vice verse.
Now when I want to set the 'justifyContent' propertyName to 'flex-start', 'center', 'left' it looks like it just doesn't execute it (or ignores it). It works of course when specifically use something like object.style.justifyContent = "flex-end"
I have a feeling that there is a restricted list of propertyNames for which one can use the setProperty. I tried to look for a list of allowed propertyNames but couldn't find it anywhere which makes me doubt that this is the problem (it can't be that I'm the first one to question this).
Also possible that the naming convention flexDirection or justifyContent is different.
Biggest chance is that I'm overseeing something stupid because of my lack of experience:D.
Can anyone point me in the right direction or any ideas where I can find out answer to this mystery?