Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /html/canvas/element/manual/drawing-paths-to-the-canvas/fill-path-with-uninvertible-transform-crash.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<script>
let context = document.createElement("canvas").getContext("2d");
context.moveTo(0, 0);
context.setTransform(4, 2, 6, 3, 0, 0); // non-invertible (4 * 3 - 6 * 2 = 0)
context.fill("nonzero");
</script>