Open Bug 1035777 Opened 11 years ago Updated 2 years ago

canvas 'source-in' with white renders black on Linux

Categories

(Core :: Graphics: Canvas2D, defect)

30 Branch
x86_64
Linux
defect

Tracking

()

UNCONFIRMED

People

(Reporter: rearnshaw, Unassigned)

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.153 Safari/537.36 Steps to reproduce: Using Firefox 30.0 on Linux: var canvas = document.createElement('canvas'); var context = canvas.getContext('2d'); var width = canvas.width; var height = canvas.height; document.body.appendChild(canvas); context.fillStyle = 'rgb(0,0,0)'; context.fillRect(0, 0, width, height); context.globalCompositeOperation = 'source-in'; context.fillStyle = 'rgb(255,255,255)'; context.fillRect(0, 0, width, height); Or http://jsfiddle.net/g9D48/2/ Actual results: The canvas is black. Expected results: The canvas is white.
QA Whiteboard: [bugday-20140714]
Component: Untriaged → Canvas: 2D
Product: Firefox → Core
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.