dialog{ &[open]{ // Do NOT set a display property on a dialog! Set it on dialog[open] instead display: inline-block; } }