Source code

Revision control

Copy as Markdown

Other Tools

<!DOCTYPE html>
<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/ -->
<title>Canvas test: 2d.layer.css-filters.shadow</title>
<p class="desc">Checks that beginLayer works with a CSS filter string as input.</p>
width="200" height="200"
<filter id="filter" x="-100%" y="-100%" width="300%" height="300%">
<feDropShadow dx="-10" dy="-10" stdDeviation="5" flood-color="purple" />
<g filter="url(#filter)">
<rect x="50" y="50" width="100" height="100" fill="teal"/>