Bug 1584752 Comment 0 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

For a `<select>` element with some `<option>` sub-elements, those options have a layout box in Firefox, contrary to latest Safari, Chrome & Edge (with EdgeHTML). This manifests by the options having:
- non-zero `offsetWidth` & `offsetHeight` properties (`0` in other browsers)
- 'getClientRects()` having a length of `1` (`0` in other browsers)

See the test case: https://output.jsbin.com/bawosuv - in non-Firefox browsers the results for the first & second (with an explicit `display: none`) cases are identical.

IE 11 has zero `offsetWidth` & `offsetHeight` but 'getClientRects()`'s length is `1` but that's a legacy browser and the behavior already changed in EdgeHTML.

This discrepancy was reported to jQuery in https://github.com/jquery/jquery/issues/4463, see the associated discussion.
For a `<select>` element with some `<option>` sub-elements, those options have a layout box in Firefox, contrary to latest Safari, Chrome & Edge (with EdgeHTML). This manifests by the options having:
- non-zero `offsetWidth` & `offsetHeight` properties (`0` in other browsers)
- 'getClientRects()` having a length of `1` (`0` in other browsers)

See the test case: https://output.jsbin.com/bawosuv - in non-Firefox browsers the results for the first & second (with an explicit `display: none`) cases are identical.

IE 11 has zero `offsetWidth` & `offsetHeight` but `getClientRects()`'s length is `1` but that's a legacy browser and the behavior already changed in EdgeHTML.

This discrepancy was reported to jQuery in https://github.com/jquery/jquery/issues/4463, see the associated discussion.
For a `<select>` element with some `<option>` sub-elements, those options have a layout box in Firefox, contrary to latest Safari, Chrome & Edge (with EdgeHTML). This manifests by the options having:
- non-zero `offsetWidth` & `offsetHeight` properties (`0` in other browsers)
- `getClientRects()` having a length of `1` (`0` in other browsers)

See the test case: https://output.jsbin.com/bawosuv - in non-Firefox browsers the results for the first & second (with an explicit `display: none`) cases are identical.

IE 11 has zero `offsetWidth` & `offsetHeight` but `getClientRects()`'s length is `1` but that's a legacy browser and the behavior already changed in EdgeHTML.

This discrepancy was reported to jQuery in https://github.com/jquery/jquery/issues/4463, see the associated discussion.

Back to Bug 1584752 Comment 0