dear klaus,
a while ago we talked about adding styles with .loadstyle() to custom elements,
or elements not having loadstyle() now, and you said something like that wouldn't be so easy
because of protected properties, etc.
i forgot about it then, but a few days ago you mentioned assignstyle()
in some thread after some experiments...
it seems to me that assignstyle() is great, but copies the styles properties to the destination
without respecting existing values and so doesnt behave like the "normal" styles.
so now my suggestion:
wouldnt it be relatively easy to implement this with assignstyle(elementname, styles, *keep);
while keep = true just would not copy style properties which are already present on the element.
keep would be optional and default to false so that exiting code doesn't break.
gosh that would allow some dynamic beauty in my code!
;)
best index
@1.19-pr6