<!DOCTYPE html><!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. --><metacharset="UTF-8"><title>OffscreenCanvas test: 2d.path.rect.zero.3</title><scriptsrc="/resources/testharness.js"></script><scriptsrc="/resources/testharnessreport.js"></script><scriptsrc="/html/canvas/resources/canvas-tests.js"></script><h1>2d.path.rect.zero.3</h1><pclass="desc"></p><script>vart=async_test("");vart_pass=t.done.bind(t);vart_fail=t.step_func(function(reason){throwreason;});t.step(function(){varcanvas=newOffscreenCanvas(100,50);varctx=canvas.getContext('2d');ctx.fillStyle='#0f0';ctx.fillRect(0,0,100,50);ctx.strokeStyle='#f00';ctx.lineWidth=100;ctx.beginPath();ctx.rect(50,25,0,0);ctx.stroke();_assertPixel(canvas,50,25,0,255,0,255);t.done();});</script>