Closed Bug 658982 Opened 14 years ago Closed 14 years ago

Highlight issue in youtube's search box due to YouTube setting a too-small line-height

Categories

(Core :: Layout: Form Controls, defect, P1)

defect

Tracking

()

VERIFIED FIXED
mozilla6
Tracking Status
firefox6 + fixed

People

(Reporter: sbadau, Assigned: bzbarsky)

References

Details

(Keywords: regression, Whiteboard: bz nominated at comment 3)

Attachments

(4 files)

Attached image Screenshot of the issue
Mozilla/5.0 (Windows NT 5.1; rv:6.0a1) Gecko/20110522 Firefox/6.0a1 The highlight of the search box on http://www.youtube.com/ is smaller than the text box. Reproducible: always STR: 1. Navigate to: http://www.youtube.com/ 2. Start typing in the search box Actual results: When the search box is focused a weird highlight appears. Expected results: The highlight of the search box while is on focus should be as big as the text box.
Reproducible also on: -> Windows7: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0a1) Gecko/20110522 Firefox/6.0a1 -> Mac OS 10.6: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:6.0a1) Gecko/20110522 Firefox/6.0a1 -> Linux i686 Mozilla/5.0 (X11; Linux i686; rv:6.0a1) Gecko/20110522 Firefox/6.0a1 *Note: Changing platform to ALL
OS: Windows XP → All
Regression window(cached m-c hourly): Works http://hg.mozilla.org/mozilla-central/rev/92d5e760e0c0 Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0a1) Gecko/20110505 Firefox/6.0a1 ID:20110505082945 Fails: http://hg.mozilla.org/mozilla-central/rev/0591c3a2b297 Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0a1) Gecko/20110505 Firefox/6.0a1 ID:20110505093012 Pushlog: http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=92d5e760e0c0&tochange=0591c3a2b297 Suspected bug: e5668cb2a02f Boris Zbarsky — Bug 349259. Allow pages to override line-height on form controls, except for <select>. r=dbaron
Component: General → Layout: Form Controls
Keywords: regression
Product: Firefox → Core
QA Contact: general → layout.form-controls
Hardware: x86 → All
Blocks: 349259
YouTube is basically depending on the fact that IE, WebKit and Opera (and old Gecko) won't let line-height reduce the height of an <input>, and using padding on the <input> to work around the IE issues with text being cut off.
Note that 12 + 2 + 2 + 2 + 3 == 21, but the label height is set to 23. So this CSS is assuming that the content height of the input will actually be 14px, in spite of the 12px line-height setting.
Summary: Highligt issue in youtube's search box → Highlight issue in youtube's search box due to YouTube setting a too-small line-height
I've contacted Google for now; let's see what they say. The question is how isolated an incident this is and whether we should just back out bug 349259.
Assignee: nobody → bzbarsky
[STR] 1. Go http://www.sony.jp/ 2. Click "My Sony Club" at the top-right 3. Click "ログイン" at the top-right 4. Input a text in password field This does not happen before landing the Bug 349259 .
Yep, looks like sony.jp is setting "line-height: 1em" and using top/bottom padding to prevent stuff from being cut off in IE. That _might_ start to work if we fix bug 634649. Maybe.
Priority: -- → P1
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla6
Comment on attachment 534451 [details] [diff] [review] Go back to not allowing changes to line-height on inputs (but continue to allowing it for <button>s, for site compat reasons. r=dbaron
Attachment #534451 - Flags: review?(dbaron) → review+
Whiteboard: bz nominated at comment 3
please nominate the attachment with a risk analysis.
There's no need to nominate; this was fixed for 6.
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:8.0a1) Gecko/20110708 Firefox/8.0a1 Verified issue using the STR to reproduce from Comment 0 on WinXP, Win7, Ubuntu 10.10 and MacOS x 10.6. Setting resolution to VERIFIED FIXED.
Status: RESOLVED → VERIFIED

Can we revert this b97aef275b5e now as YouTube has changed their input field?

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

Attachment

General

Created:
Updated:
Size: