New issue
Advanced search Search tips

Issue 680024 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue 771852
Owner: ----
Closed: Dec 2017
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug



Sign in to add a comment

canvas on foreignObject has different size than normal canvas when window.devicePixelRatio != 1

Reported by kreft...@gmail.com, Jan 11 2017

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36

Steps to reproduce the problem:
1. draw rectangle on canvas
2. draw rectangle of the same size on canvas inside foreingObject in svg
3. show them both next to each other in browser window having devicePixelRatio != 1
4. they will appear different in sizes

What is the expected behavior?
both rectangles should have the same size

What went wrong?
canvas inside the foreignObject svg is scaled by the devicePixelRatio

Did this work before? N/A 

Does this work in other browsers? Yes

Chrome version: 55.0.2883.87  Channel: stable
OS Version: 10.0
Flash Version: Shockwave Flash 24.0 r0
 
bug.html
981 bytes View Download
capture.png
4.0 KB View Download

Comment 1 by f...@opera.com, Jan 11 2017

Status: Available (was: Unconfirmed)
Possibly the same as  issue 510819 .
Mergedinto: 771852
Status: Duplicate (was: Available)

Sign in to add a comment