Closed Bug 495084 Opened 15 years ago Closed 14 years ago

Opacity clipping text by 1px but moz-opacity fine

Categories

(Core :: Graphics, defect)

x86
Windows XP
defect
Not set
trivial

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: paul.liversidge, Unassigned)

Details

Attachments

(3 files)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1b4) Gecko/20090423 Firefox/3.5b4 (.NET CLR 3.5.30729)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1b4) Gecko/20090423 Firefox/3.5b4 (.NET CLR 3.5.30729)

Using opacity <1 through CSS or style attribute clips the right-hand side of the text by 1px. Using -moz-opacity works fine though, suggesting the two properties are being handled differently.

Reproducible: Always

Steps to Reproduce:
1. Use this HTML snippet:

<p style="font-family:Tahoma;">Delete</p>
<p style="font-family:Tahoma;opacity:0.9">Delete</p>
<p style="font-family:Tahoma;-moz-opacity:0.9">Delete</p>
Actual Results:  
The middle paragraph clips the right-hand side of the text by 1px.

Expected Results:  
All three paragraphs should be rendered the same, albeit the slight difference in opacity of the text.

Editing the HTML, or CSS, live through FireBug or the Web Developer toolbar temporarily fixes the problem though.
-moz-opacity isn't supported anymore. It won't have any effect.

The rest of this bug is likely a duplicate of another one, though I can't find it at the moment.
Component: General → GFX: Thebes
Product: Firefox → Core
QA Contact: general → thebes
Whiteboard: DUPEME
Particular letters are more obvious than others such as the 'e', 'w', 'v' and 'm' but you can see the clipping is caused by a different anti-aliasing algorithm. The plain and opacity snippets are anti-aliased with color whereas the opacity snippet is anti-aliased with only grayscale and the final column is missing as you can see by comparing the 'e' in the sample.
Hello, this still happens in the latest Mozilla Firefox 3.5.4 for Windows.

When using small font sizes and names ending in letters like 'i' this truncates the latest latter, creating a subtle bug which is really hard to trace.
Attached file Truncation issue
Last letter, if it's narrow, gets truncated with certain font sizes/background colors.
This works for me on the trunk and Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6

Can reproduce using 3.5, would like conformation that the bug is worksforme.
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → WORKSFORME
Whiteboard: DUPEME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: