fix default style assignment for nested styles, move 'visible' property into style block