test for adding HTML style attribute