Open
Bug 1385419
Opened 8 years ago
Updated 10 months ago
Parent element stretches to submit input's line-height, rather than its also-specified height.
Categories
(Core :: Layout: Form Controls, defect, P3)
Core
Layout: Form Controls
Tracking
()
NEW
Tracking | Status | |
---|---|---|
firefox54 | --- | wontfix |
firefox55 | --- | wontfix |
firefox56 | --- | wontfix |
firefox57 | --- | fix-optional |
firefox58 | --- | ? |
People
(Reporter: wisniewskit, Unassigned, NeedInfo)
References
Details
(Keywords: regression, Whiteboard: [webcompat])
Attachments
(3 files)
If an input[type=submit] is given both a height and a (much larger) line-height, it will render with the given height, but its parent node will consider it to be as tall as its line-height instead. This leads to the parent being much taller than it should be.
See the attached testcase for a minimal test-case. All other browsers restrict the height of the parent div to the input's actual height, but in Firefox it is as tall as the input's line-height, even though the input isn't actually that tall.
This causes graphical glitches on at least one site which uses a tall line-height to do simple image-replacement (in the "see also" link).
Flags: webcompat?
Updated•8 years ago
|
Flags: webcompat? → webcompat+
Updated•8 years ago
|
Flags: needinfo?(aschen)
Comment 1•8 years ago
|
||
Last good revision: 46041cc216fd (2014-03-13)
First bad revision: f073b3d6db1f (2014-03-14)
Pushlog: https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=46041cc216fd&tochange=f073b3d6db1f
status-firefox54:
--- → wontfix
status-firefox55:
--- → wontfix
status-firefox56:
--- → affected
Keywords: regression
Priority: -- → P2
Comment 2•8 years ago
|
||
Bug 349259 might the one that we should look at.
Blocks: 349259
Flags: needinfo?(aschen) → needinfo?(dbaron)
The above testcase seems to show two areas where we do something substantially different from Chrome:
* input type=button/submit/reset (as in the original testcase here)
* input type=date/time
And Edge expands even fewer lines than Chrome in the testcase: only textarea (which other browsers don't) and output. So if we want there's certainly room to drop the expansion from input type=file and type=image without a src. The only line expanded everywhere is the one for output, which I suspect doesn't have any special layout behavior.
Comment 6•7 years ago
|
||
Too late to fix for 56, marking fix-optional for 57.
![]() |
||
Comment 7•7 years ago
|
||
Is this a duplicate of Bug 1246682?
![]() |
||
Comment 8•7 years ago
|
||
Not sure if it's another issue or related to this but…
https://codepen.io/webcompat/pen/JrmBJL
<input type="submit" value="foobar"/>
input {line-height: 100px}
This does nothing in
* Safari Tech Preview Release 41 (Safari 11.1, WebKit 13605.1.8)
* Chrome Version 61.0.3163.100 (Build officiel) (64 bits)
But give the box a size in Firefox Nightly 58.0a1 (2017-10-15) (64-bit)
Not sure who is right there, but there's discrepancy on how we handle this.
If we think we are right I can open bugs on Chromium/WebKit projects.
Found through https://webcompat.com/issues/11860
![]() |
||
Updated•7 years ago
|
See Also: → https://webcompat.com/issues/11860
Comment 9•6 years ago
|
||
Moving to p3 because no activity for at least 1 year(s).
See https://github.com/mozilla/bug-handling/blob/master/policy/triage-bugzilla.md#how-do-you-triage for more information
Priority: P2 → P3
Comment 10•6 years ago
|
||
Migrating Webcompat whiteboard priorities to project flags. See bug 1547409.
Webcompat Priority: --- → ?
Comment 11•6 years ago
|
||
See bug 1547409. Migrating whiteboard priority tags to program flags.
Updated•5 years ago
|
Webcompat Priority: ? → P3
Updated•2 years ago
|
Severity: normal → S3
Comment 13•10 months ago
|
||
The site reported on webcompat.com has changed their layout a bit and no longer seems to have the issue, so unsetting the webcompat priority for now.
Webcompat Priority: P3 → ---
You need to log in
before you can comment on or make changes to this bug.
Description
•