зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1151821 - Test: Test whether simple canvas globalCompositeOperators work when a clip is set. r=jrmuizel
This commit is contained in:
Родитель
05e322c6f7
Коммит
53c959e4f6
|
@ -0,0 +1,20 @@
|
|||
<!docytpe html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<script>
|
||||
window.onload=function(){
|
||||
|
||||
var c=document.getElementById("myCanvas").getContext("2d");
|
||||
|
||||
c.fillStyle="green";
|
||||
|
||||
c.fillRect(0, 0,100,100);
|
||||
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<canvas id="myCanvas" height=50 width=100></canvas>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,26 @@
|
|||
<!docytpe html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<script>
|
||||
window.onload=function(){
|
||||
|
||||
var c=document.getElementById("myCanvas").getContext("2d");
|
||||
|
||||
c.fillStyle = "green";
|
||||
|
||||
c.fillRect(0, 0,100,100);
|
||||
|
||||
c.fillStyle = "red";
|
||||
c.globalCompositeOperation = "destination-over";
|
||||
c.rect(0, 0, 100, 100);
|
||||
c.clip();
|
||||
c.fillRect(0, 0, 100, 100);
|
||||
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<canvas id="myCanvas" height=50 width=100></canvas>
|
||||
</body>
|
||||
</html>
|
|
@ -103,3 +103,5 @@ skip-if(Mulet) == 726951-shadow-clips.html 726951-shadow-clips-ref.html # TC: Bu
|
|||
fuzzy-if(azureQuartz,2,128) fuzzy-if(d2d,12,21) == 784573-1.html 784573-1-ref.html
|
||||
|
||||
== 802658-1.html 802658-1-ref.html
|
||||
|
||||
== 1151821-1.html 1151821-1-ref.html
|
||||
|
|
Загрузка…
Ссылка в новой задаче