Add style attributes to parent container, if it exists.

From #5342.