Open Bug 1873301 Opened 9 months ago Updated 9 months ago

Buttons don't support scrollbars (overflow:scroll/auto) in Firefox

Categories

(Core :: Layout: Form Controls, defect)

defect

Tracking

()

People

(Reporter: dholbert, Unassigned)

Details

Attachments

(2 files)

I'm not sure there's a huge demand for this, but I noticed it as an interop difference between us and Chromium/WebKit in response to IanK's paranthetical in https://github.com/w3c/csswg-drafts/issues/7714#issuecomment-1877870277

Apparently <button style="overflow:scroll"> (and "auto") can successfully add scrollbars in Chromium and Safari, but not in Firefox.

STR:

  1. Load testcase.
  2. Try to scroll the button to find the text "YouFoundMe" on the right side or the bottom side of the button's content.

ACTUAL RESULTS:
No scrollbars; no way to reach the "YouFoundMe" text.

EXPECTED RESULTS:
Maybe there should be scrollbars so that the overflowing text can be found (per the overflow styling).

Attached file testcase 1

As you can see in the screenshot, Chromium/WebKit show scrollbars.

And also, as you might expect/hope: clicking the scrollbars does not seem to actually click the button (at least: if I add an onclick handler for the button, that handler doesn't fire when I click or click-and-drag the scrollbar).

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: