support attributes in styles.