This is a follow-up to bug #81882 (which is the same for <option>). There is one WPT test case which also covers <optgroup>: http://wpt.live/css/css-display/select-4-option-optgroup-display-none.html (Thanks to Carlos López for pointing out the test case.)