{% if test_type == 'promise' %} {% endif %} {% if fuzzy %} {% endif %} {% if timeout %} {% endif %} Canvas test: {{ name }}

{{ name }}

{{ desc }}

{% if notes %}

{{ notes }}{% endif %}

FAIL (fallback content)

const canvas = new OffscreenCanvas({{ size[0] }}, {{ size[1] }}); const ctx = canvas.getContext('2d'{% if attributes %}, {{ attributes }}{% endif %}); {{ code | trim | indent(2) }} const outputCanvas = document.getElementById("canvas"); outputCanvas.getContext('2d'{% if attributes %}, {{ attributes }}{% endif %}).drawImage(canvas, 0, 0); {% if test_type == 'promise' %} document.documentElement.classList.remove("reftest-wait"); {% endif %} {% if test_type == 'promise' %}{% endif %}