mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
Bug 726951 - Reftest: Test for shadow clips working correctly in non-rectangular canvases. r=jrmuizel
This commit is contained in:
parent
ceb0b93557
commit
ac9c902d7e
18
layout/reftests/canvas/726951-shadow-clips-ref.html
Normal file
18
layout/reftests/canvas/726951-shadow-clips-ref.html
Normal file
@ -0,0 +1,18 @@
|
||||
<!doctype html>
|
||||
<head>
|
||||
|
||||
<body>
|
||||
<canvas id="mycanvas" width="200" height="200"></canvas>
|
||||
|
||||
<script type="text/javascript">
|
||||
var cx = document.getElementById('mycanvas').getContext('2d');
|
||||
cx.beginPath();
|
||||
cx.rect(10, 10, 50, 50);
|
||||
cx.clip();
|
||||
cx.beginPath();
|
||||
cx.rect(0, 0, 50, 50);
|
||||
cx.shadowColor = "black";
|
||||
cx.shadowOffsetX = 10;
|
||||
cx.shadowOffsetY = 10;
|
||||
cx.fill();
|
||||
</script>
|
18
layout/reftests/canvas/726951-shadow-clips.html
Normal file
18
layout/reftests/canvas/726951-shadow-clips.html
Normal file
@ -0,0 +1,18 @@
|
||||
<!doctype html>
|
||||
<head>
|
||||
|
||||
<body>
|
||||
<canvas id="mycanvas" width="200" height="600"></canvas>
|
||||
|
||||
<script type="text/javascript">
|
||||
var cx = document.getElementById('mycanvas').getContext('2d');
|
||||
cx.beginPath();
|
||||
cx.rect(10, 10, 50, 50);
|
||||
cx.clip();
|
||||
cx.beginPath();
|
||||
cx.rect(0, 0, 50, 50);
|
||||
cx.shadowColor = "black";
|
||||
cx.shadowOffsetX = 10;
|
||||
cx.shadowOffsetY = 10;
|
||||
cx.fill();
|
||||
</script>
|
@ -75,4 +75,6 @@ fails-if(/Mac\x20OS\x20X\x2010\.[56]/.test(http.oscpu)) == 672646-alpha-radial-g
|
||||
|
||||
!= 693610-1.html 693610-1-notref.html # bug 693610: multiple glyph runs should not be overprinted
|
||||
|
||||
== 726951-shadow-clips.html 726951-shadow-clips-ref.html
|
||||
|
||||
== transformed-clip.html transformed-clip-ref.html
|
||||
|
Loading…
Reference in New Issue
Block a user