Open Bug 793222 Opened 12 years ago Updated 2 years ago

Odd & Even Width -linear-gradient Firefox Bug

Categories

(Core :: Layout, defect)

15 Branch
x86
macOS
defect

Tracking

()

UNCONFIRMED

People

(Reporter: p.h.howells, Unassigned)

Details

Attachments

(3 files)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:17.0) Gecko/17.0 Firefox/17.0
Build ID: 20120921042009

Steps to reproduce:

Gave Div elements striped background images using -linear-gradient CSS.

I have tested this in Firefox 15 and Aurora 17.0a2 on OS X 10.6.8.  


Actual results:

The stripes had correct expected widths when rendered in a div with an even numbered pixel width.

But the stripes had incorrect widths when rendered in a div with an odd numbered pixel width.


Expected results:

The stripes should have been rendered at their correct expected widths regardless of the width of the Div element they were rendered in.
Attachment #663454 - Attachment mime type: text/plain → text/html
Component: General → Layout
Attached image screen shot on Linux
This is what I'm seeing on Linux, which seems like the correct rendering, given that I'd expect to see a 1px horizontal shift because the background-position is horizontally centered (and therefore centering within 501px yields 250.5px which rounds up to 251px.

Is this Mac-only?
Attachment #663550 - Attachment mime type: text/plain → image/png
I agree that the Linux screenshot shows correct expected rendering.  Perhaps this is indeed a Firefox on Mac OSX issue?

The attached .png file shows the correct behaviour also being exhibited by Opera, Safari and Chrome (all on OSX, and when the css is tweaked to use their vendor prefixes) in comparison with Firefox.
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: