Closed Bug 1614050 Opened 5 years ago Closed 5 years ago

Adding 'type=number' to input breaks grid layout

Categories

(Core :: Layout: Form Controls, defect)

72 Branch
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1430141

People

(Reporter: jvanheesch, Unassigned)

Details

Attachments

(1 file)

Attached file reproducer.html

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.87 Safari/537.36

Steps to reproduce:

I created reproducer.html and opened in in Firefox.
Browser: Firefox: 72.0.2 (64-bit)
OS: macOS Catalina 10.15.3 (19D76)

Actual results:

Attached html file is rendered differently in firefox than in chrome/safari: the grid layout is not respected.
Removing 'type = number' fixes the layout, and makes it consistent with the other browsers.

Expected results:

I assume the grid layout should be respected, as is the case when 'type=number' is removed.

Component: Untriaged → Layout: Form Controls
Product: Firefox → Core

Yes, that makes sense. You can add inline-size: auto to the number input meanwhile to get the same result in 72 / 73.

Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: