Created
February 18, 2014 17:00
-
-
Save yurydelendik/9074971 to your computer and use it in GitHub Desktop.
Minimal test case to replicate linux firefox 27 bug
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<canvas id="c"></canvas> | |
<script> | |
var c = document.getElementById('c'); | |
var ctx = c.getContext('2d'); | |
ctx.transform(10, 0, 0, 10, 0, 0); | |
ctx.rect(10, 5, 1, 1); | |
ctx.fillStyle = 'red'; | |
// ctx.mozFillRule = 'evenodd'; // also bad | |
// ctx.fill(); // okay | |
ctx.fill('evenodd'); | |
ctx.strokeStyle = 'green'; | |
ctx.strokeWidth = 1; | |
ctx.stroke(); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment