don't add parent if style is null
0.4.2