Open Bug 857471 Opened 11 years ago Updated 2 years ago

Secondary text in the downloads panel doesn't have sub-pixel anti-aliasing

Categories

(Firefox :: Downloads Panel, defect)

23 Branch
x86
All
defect

Tracking

()

People

(Reporter: scook0+bugzilla, Unassigned)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:21.0) Gecko/20130401 Firefox/21.0
Build ID: 20130401042013

Steps to reproduce:

Download any file, then open the downloads panel from the downloads button and closely inspect the text showing the file's size, domain, and download time.


Actual results:

The secondary text does not have sub-pixel anti-aliasing applied, which is inconsistent with the rest of the downloads panel and the rest of the Firefox UI.


Expected results:

All of the text in the downloads panel should have sub-pixel anti-aliasing.
Component: Untriaged → Downloads Panel
I've observed this in Nightly 23 and Aurora 21 on OS X, and in Aurora 21 on Windows 7, so it doesn't appear to be a platform-specific issue.
OS: Mac OS X → All
I might be wrong, but I think we don't apply subpixel AA if the font size is below a certain threshold, cc-ing jonathan who may know.
In general, we don't have a size threshold that would affect this. On Windows, at least, I believe we respect the font's "gasp" table, which can specify which hinting and antialiasing options should be applied at different sizes, so that could be a factor; not sure it has any effect on OS X, however.

I don't think size is the issue here, anyhow. I see subpixel AA on Lucida Grande at all sizes on OS X. (But I see the same grayscale-only text in the Downloads panel.) Are there elements involved that have varying opacity? That's often a trigger for grayscale-only AA, as subpixel AA doesn't get along well with general compositing of semi-transparent elements.
ah yes, that text has opacity: 0.7;
OK, I suspect that's a factor (although -by itself- it wouldn't necessarily trigger this, I think; but perhaps in combination with the background).

Would it be reasonable to adjust the color instead of the opacity in its CSS?
it's possible, iirc the opacity was used to "adapt" to the OS font color settings (the panel uses the dialog color text) and the grey text was barely readable.
As an experiment, I replaced opacity:0.7 with color:gray in browser/themes/osx/downloads/downloads.css, and sure enough, that results in subpixel-antialiased text here.

Of course, that wouldn't necessarily interact with other elements in exactly the same way, so I don't know whether it's acceptable to the design folk. Also, I see there are other uses of opacity:0.7 (in allDownloadsViewOverlay.css and places.css); similar considerations might apply to those.
Status: UNCONFIRMED → NEW
Ever confirmed: true
(In reply to Marco Bonardo [:mak] from comment #4)
> ah yes, that text has opacity: 0.7;

Not quite sure using opacity is a great thing in UI elements that need to be readable but another option is to use an rgba color instead, this avoids the fallback to grayscale rendering caused by the use of opacity.  The semantics are slightly different but my guess is that would work for what you want.  Gray works too...

Just a general note that text "effects" like opacity and text-shadow will result in grayscale antialiasing so they should be used with caution.
yes, rgba sounds like a good idea.
I believe, in general, we used opacity since the colors are inherited from the
standard panel colors, defined in the Toolkit themes, that in turn may use
system colors (for example, inverting dark and light colors with some themes).

I don't know whether we use local colors, system colors or Toolkit-theme-defined
colors on the platforms where this issue has been specifically observed.
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: