Inherit parent element's classes automatically