Closed
Bug 988965
Opened 11 years ago
Closed 11 years ago
Input doesn't respect max-width
Categories
(Core :: Layout: Form Controls, defect)
Tracking
()
RESOLVED
INCOMPLETE
People
(Reporter: lauri.eskola, Unassigned, NeedInfo)
Details
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:28.0) Gecko/20100101 Firefox/28.0 (Beta/Release)
Build ID: 20140314220517
Steps to reproduce:
Input inside a 500px width div, input has a size attribute which defines the size of the input. Then I have a max-width 100% because I want to keep the input inside the div, but that doesn't have any effect for the input. If I apply width rule, that gives the right width for the input.
https://drupal.org/node/2227121
Actual results:
Input doesn't have any effect while using max-width
Expected results:
It should keep the input fields maximum weight as wide as the parent div is.
Comment 1•11 years ago
|
||
Please attach a testcase.
With this:
<div style="width: 500px; height: 50px; background-color: blue">
<input size="10000" type="text" style="max-width: 100%"/>
the input goes beyong the right edge of the div only a few pixels (less blue is visible on the left).
firefox-28.0.en-US.linux64
2014-04-02-03-02-01-mozilla-central-firefox-31.0a1.en-US.linux-x86_64
QA Whiteboard: [bugday-20140407]
Component: Untriaged → Layout: Form Controls
Keywords: testcase-wanted
Product: Firefox → Core
Updated•11 years ago
|
Flags: needinfo?(lauri.eskola)
Comment 2•11 years ago
|
||
Please reopen this report when you have a testcase / URL that demonstrates the problem.
Status: UNCONFIRMED → RESOLVED
Closed: 11 years ago
Resolution: --- → INCOMPLETE
Updated•9 years ago
|
Keywords: testcase-wanted
You need to log in
before you can comment on or make changes to this bug.
Description
•