textarea control - cannot overwrite initial style?

Trying to overwrite initial style mycssRed with mycssBlue for “textarea” view via:

webix.html.addCss( $$("<my textarea>").$view, "<my style>");

So far no luck.
Am I doing something wrong?

http://webix.com/snippet/443a406b

Hello,

If you remove the mycssRed from textarea before assigning a myCssBlue to it - every works well.

http://webix.com/snippet/70f4c81c

What if I don’t know styles I currently have applied for an element? Can I add new classes on top and make last style as curent? Will the styles work like a stack - last added makes previous obsolete?

You can redefine all css styles for specific node by using

$$(some).$view.className = "my css string";

but in such case you need to care about default css class of component that need to be included in the string along with your custom class name;

Will the styles work like a stack - last added makes previous obsolete?

Mostly yes. but it is unsafe

Thank you .