Open Bug 1050084 Opened 6 years ago Updated 6 years ago

scale(0,0) err with linux

Categories

(Firefox :: General, defect)

31 Branch
x86_64
Linux
defect
Not set
normal

Tracking

()

UNCONFIRMED

People

(Reporter: liushengqi000, Unassigned)

Details

Attachments

(1 file)

346 bytes, text/html
Details
User Agent: UCWEB/2.0 (Linux; U; Adr 4.4.2; zh-CN; MI 3) U2/1.0.0 UCBrowser/9.9.0.459 U2/1.0.0 Mobile

Steps to reproduce:

only find in linux
windowd not find
mac has not test

var a= document.getElementById("surface");var b=a.getContext("2d");
b.save();
b.fillStyle="#FF0000";b.fillRect(0,0,900,900);
b.restore();

var a= document.getElementById("surface");var b=a.getContext("2d");
b.save();
b.scale(0,0);
b.restore();

var a= document.getElementById("surface");var b=a.getContext("2d");
b.save();
b.fillStyle="#0000FF";b.fillRect(0,0,900,900);
b.restore();


Actual results:

blue


Expected results:

red
scale(0,0)can not restor
canvas death
no err in console
Summary: scale → scale(0,0) err with linux
Component: Untriaged → General
Hardware: Other → x86_64
Steps to reproduce:

var a= document.getElementById("surface");
var b=a.getContext("2d");
b.fillStyle="#FF0000";
b.fillRect(0,0,900,900);
b.save();
b.scale(0,0);
b.restore();
b.fillStyle="#0000FF";
b.fillRect(0,0,900,900);


Actual results:

red
scale(0,0)can not restor
canvas death
no err in console


Expected results:

blue
Attached file 1050084.html
Testcase.
(In reply to Loic from comment #2)
> Created attachment 8469338 [details]
> 1050084.html
> 
> Testcase.

yes 
red
canvas death

can't edit the post so comment

>Actual results:
>red
>scale(0,0)can not restor
>canvas death
>no err in console

>Expected results:
>blue
Testcase.(In reply to Loic from comment #2)
> Created attachment 8469338 [details]
> 1050084.html
> 
> Testcase.

en,that's a mistake
i don't know how to edit the post

the Testcase is red 
ubuntu+firefox31

>Actual results:
>red
>scale(0,0)can not restor
>canvas death
>no err in console

>Expected results:
>blue
You need to log in before you can comment on or make changes to this bug.