Closed Bug 1903191 Opened 5 months ago Closed 5 months ago

Firefox doesn't allow radio buttons to be literally zero sized

Categories

(Core :: Layout: Form Controls, defect)

defect

Tracking

()

VERIFIED FIXED
129 Branch
Tracking Status
firefox129 --- wontfix
firefox130 --- verified

People

(Reporter: dholbert, Assigned: emilio)

References

(Regressed 1 open bug)

Details

Attachments

(3 files)

Attached file radio.html

STR:

  1. Load attached testcase.

ACTUAL RESULTS:
The bottom 4 rows, "4" through "0", are all the same size.

EXPECTED RESULTS:
They should be progressively smaller, with 0 being completely invisible.

This is the root cause of bug 1900326 where a site is depending on a radio button with width:0; height:0 to not-contirbute-at-all to scrollable overflow. The fact that it contributes creates a giant scrollable area that the site does not actually want to be present. If we let it be zero sized, then it wouldn't contribute to scrollable overflow and everything would be fine.

Blocks: 1900326

That's because we enforce a border here. I think we can try not to, but we might have to fix up the baselines.

Flags: needinfo?(emilio)
Assignee: nobody → emilio
Status: NEW → ASSIGNED
Flags: needinfo?(emilio)
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/3c34c76566d2 Tweak sizing to allow zero-size checkboxes/radio buttons. r=dholbert
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/46827 for changes under testing/web-platform/tests

Backed out for causing assertion failures on nsCheckboxRadioFrame.cpp

Flags: needinfo?(emilio)
Upstream PR was closed without merging
Flags: needinfo?(emilio)
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/60441f245287 Tweak sizing to allow zero-size checkboxes/radio buttons. r=dholbert
Status: ASSIGNED → RESOLVED
Closed: 5 months ago
Resolution: --- → FIXED
Target Milestone: --- → 129 Branch
Upstream PR merged by moz-wptsync-bot
Duplicate of this bug: 1900326
QA Whiteboard: [qa-129b-p2]

Reproducible on a 2024-06-17 Nightly build on Windows 10.
Verified as fixed on Firefox 129.0b2 and Firefox Nightly 130.0a1 on Windows 10, Ubuntu 22, macOS 14.

Status: RESOLVED → VERIFIED
QA Whiteboard: [qa-129b-p2]
Regressions: 1907291
Regressions: 1907243
Regressions: 1924239
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: