Hm, that looks a little bit fragile to me, ```style[i] || node[i]```. What if some node has an attribute set, but it would be needed to have it also in the style?
What examples are there where the rendered layout is actually set by a node.attribut? Nodes added for rendering?