simplify render_style further after 6bbbe155fee3080aac0265b0f40805f2c2a4edde