Client Script addStyle - Which CSS styles can be set?

Client Script addStyle - Which CSS styles can be set?

Hello

I need to restrict the image size of the image on a canvas custom record page.

I have set the id of the image to TestElement1 and I can hide the element using setVisibility or change it using setImage.

However, when I try to use the addStyle function to add CSS styles, I can't add any style to the element. I can't add styles to text elements either.

This has no effect:

var elem = ZDK.UI.getElementByID('TestElement1');

elem.addStyle({ 'border':'50px','border-radius' : '10px;','border-color':'red' })