summaryrefslogtreecommitdiffstats
path: root/layout/reftests/canvas/empty-transaction-1.html
blob: 34736b1d3b494c2a5883a973e387d00b09e883d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<!DOCTYPE HTML>
<html class="reftest-wait">
<body>
<canvas style="display:block" id="c" width="100" height="100"></canvas>
<script>
var ctx = document.getElementById("c").getContext("2d");
function doTest() {
  document.documentElement.removeAttribute("class");
  ctx.fillRect(0, 0, 100, 100);
}
window.addEventListener("MozReftestInvalidate", doTest);
</script>
</body>
</html>