dom/canvas/test/reftest/filters/fillText-with-filter-opacity-2.html
author Ethan Lin <ethlin@mozilla.com>
Thu, 29 Sep 2016 18:39:00 -0400
changeset 315861 1422dee77e6082162cbd2ec1372c6a1b089512fa
parent 315745 fbfe71842bb7a17bed00854803f59f67e58c0afd
permissions -rw-r--r--
Bug 1304539 - Add reftest for fillText and strokeText with filter. r=mstange

<!DOCTYPE html>
<html>
<head>
<canvas id="canvas" width="100" height="100"></canvas>
<script>
var canvas = document.getElementById("canvas");
var ctx = canvas.getContext("2d");
ctx.globalAlpha = 0.5;
ctx.fillStyle = "rgb(0,255,0)";
ctx.filter = "opacity(0.5)";
ctx.font = "20px serif";
ctx.fillText("Hello world", 0, 50);
</script>
</body></html>