Skip to content

Instantly share code, notes, and snippets.

@yurydelendik
Created February 18, 2014 17:00
Show Gist options
  • Select an option

  • Save yurydelendik/9074971 to your computer and use it in GitHub Desktop.

Select an option

Save yurydelendik/9074971 to your computer and use it in GitHub Desktop.
Minimal test case to replicate linux firefox 27 bug
<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