Closed Bug 349038 Opened 18 years ago Closed 18 years ago

Text/favicon in active tab breaks out of tab itself

Categories

(Firefox :: Tabbed Browser, defect)

2.0 Branch
x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 2 beta2

People

(Reporter: alex+list, Assigned: mwu)

References

Details

(Keywords: fixed1.8.1, Whiteboard: [Fx2 theme change])

Attachments

(2 files)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1b1) Gecko/20060817 BonEcho/2.0b1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1b1) Gecko/20060817 BonEcho/2.0b1

The tab boundary directly above the site favicon and title in the currently active tab appears to protrude a pixel out from the rest of the tab, including the close button. Note that it does not occur in any other tabs.

Screenshot:
http://img217.imageshack.us/img217/3402/tabprotrudeli6.png

Reproducible: Always

Steps to Reproduce:
1. Open several tabs.
Blocks: NewTheme
Version: unspecified → 2.0 Branch
As a note, it appears that the "broken-out" portion of the tab is the only part that is level with the other tabs in the strip. This would be consistent with the "broken" appearance of the line directly underneath the tab strip.
Attached image screenshot
I can only reproduce that when I make giant letters.
*** Bug 349041 has been marked as a duplicate of this bug. ***
That's odd - I'm on the XP default font size. I am, however, on a 1400 x 1050 monitor. Could that have any affect on the fonts?
I have a 1024 x 768 screen. 
It should not happen in any case I think.
This bug depends on your font size and dpi. Smaller fonts and lower dpis can make this problem go away. The problem is .tab-image-middle gets some extra margins and padding when selected, but the tab-image-left and tab-image-right and the close button do not. They need the same padding/margin adjustments as tab-image-middle.
Confirming, darin can reproduce at will on his machine.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: blocking-firefox2?
Target Milestone: --- → Firefox 2
Assignee: nobody → bugs.mano
Assignee: bugs.mano → michael.wu
Status: NEW → ASSIGNED
Attachment #234328 - Flags: review?(sspitzer)
Comment on attachment 234328 [details] [diff] [review]
Expand scope of select tab rules

Crap, this doesn't do it.
Attachment #234328 - Flags: review?(sspitzer)
Comment on attachment 234328 [details] [diff] [review]
Expand scope of select tab rules

This helps a bit, but the image itself is a little too small.. it really can't handle big fonts.
Attachment #234328 - Flags: review?(sspitzer)
*** Bug 349089 has been marked as a duplicate of this bug. ***
Flags: blocking-firefox2? → blocking-firefox2+
Whiteboard: [Fx2 theme change]
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1b2) Gecko/20060818 BonEcho/2.0b2 - Build ID: 2006081807

In my case (1024 x 768 screen), the threshold seems to be 99 - 100 DPI. At 99 DPI and below, the tab is fine. At 100 and above, the tab is as described in this bug.
Comment on attachment 234328 [details] [diff] [review]
Expand scope of select tab rules

looks reasonable, and michael demonstrated this fix (by varying his dpi).

assuming this doesn't cause any problems when asaf fixes the focus feedback bug (see #348959), r=sspitzer

seeking second review from mconnor
Attachment #234328 - Flags: superreview?(mconnor)
Attachment #234328 - Flags: review?(sspitzer)
Attachment #234328 - Flags: review+
michael:  what was the dpi pref you were changing when you demonstrated this patch for me?

(and, what values were you using?)
(In reply to comment #14)
> michael:  what was the dpi pref you were changing when you demonstrated this
> patch for me?
> 
> (and, what values were you using?)
> 
layout.css.dpi was the pref I was using. I was using 96, 124 (actually -1 to read system settings), and 150. It also depends on your system font size settings.
Comment on attachment 234328 [details] [diff] [review]
Expand scope of select tab rules

looks good, r+a=me for this branch-only theme change
Attachment #234328 - Flags: superreview?(mconnor)
Attachment #234328 - Flags: superreview+
Attachment #234328 - Flags: approval1.8.1+
Checking in toolkit/themes/winstripe/global/browser.css;
/cvsroot/mozilla/toolkit/themes/winstripe/global/browser.css,v  <--  browser.css
new revision: 1.9.4.17; previous revision: 1.9.4.16
done

Sorry for not putting the summary in the commit - I screwed up a middle click paste.
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Keywords: fixed1.8.1
Resolution: --- → FIXED
Target Milestone: Firefox 2 → Firefox 2 beta2
Depends on: 350656
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: