copy style attr from original element. fixes #1476