Closed Bug 1527982 Opened 6 years ago Closed 6 years ago

Input with large size attribute does not shrink to fit in flexbox

Categories

(Core :: Layout: Flexbox, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1331692
Tracking Status
firefox67 --- affected

People

(Reporter: twisniewski, Unassigned)

References

Details

(Whiteboard: [webcompat])

Attachments

(2 files)

Attached file test.html

In the attached test-case, a text input has a large size="2000" which causes it to exceed the size of its flexbox container, despite the input having both width:100% and flex:0 0 100%. Unlike in Chromium, max-width:100% must be specified for the input to shrink (or removing/reducing the size attribute).

Flags: webcompat?

The testcase from comment 0 actually has max-width:100% which makes it work as-expected.

However, I do see the problem described (and the discrepancy with Chrome) if I edit the testcase to replace max-width with width.

This is bug 1331692.

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

Attachment

General

Created:
Updated:
Size: