summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/canvas/element/manual/shadows/canvas_shadows_system_colors.html
blob: 42978fb18f9f27427b2fe703889e693f4d64430f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>System Colors work for Canvas Drop-Shadow Filters</title>
  <link rel="match" href="canvas_shadows_system_colors-expected.html">
</head>
<body>
<canvas id='c' width="100" height="200">
<script>
// See crbug.com/1226282 and crbug.com/1081945
// A reference test is necessary because system colors do not have defined
// numeric values. Here we're comparing 'GrayText' to css 'GrayText'.
var ctx = document.getElementById('c').getContext('2d');
ctx.filter = 'drop-shadow(0px 100px 0 GrayText)';
ctx.fillRect(0,0,100,100);
</script>
</body>
</html>