https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 2ae9561e165d3feb219cd34ee5b0334e91170cfd authored by Hayato Ito on 22 March 2018, 09:56:30 UTC
Reject customized built-in elements in attachShadow
Tip revision: 2ae9561
2d.shadow.enable.off.1.html
<!DOCTYPE html>
<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. -->
<title>OffscreenCanvas test: 2d.shadow.enable.off.1</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/common/canvas-tests.js"></script>

<h1>2d.shadow.enable.off.1</h1>
<p class="desc">Shadows are not drawn when only shadowColor is set</p>


<script>
var t = async_test("Shadows are not drawn when only shadowColor is set");
t.step(function() {

var offscreenCanvas = new OffscreenCanvas(100, 50);
var ctx = offscreenCanvas.getContext('2d');

ctx.shadowColor = '#f00';
ctx.fillStyle = '#0f0';
ctx.fillRect(0, 0, 100, 50);
_assertPixel(offscreenCanvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255");

t.done();

});
</script>
back to top