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

{{ name }}

{{ desc }}

{% if notes %}

{{ notes }}{% endif %}

FAIL (fallback content)

const canvas = document.getElementById("canvas"); const ctx = canvas.getContext('2d'{% if attributes %}, {{ attributes }}{% endif %}); {{ code | trim | indent(2) }} {% if test_type == 'promise' %} document.documentElement.classList.remove("reftest-wait"); {% endif %} {% for image in images %} {% endfor -%} {% for svgimage in svgimages %} {% endfor -%} {% if test_type == 'promise' %}{% endif %}