mirror of
https://github.com/SerenityOS/serenity
synced 2024-07-21 10:05:32 +00:00
Tests/LibWeb: Add a ref test for SVG mask with maskUnits=userSpaceOnUse
This commit is contained in:
parent
e9fd7c96af
commit
43177fd2a1
13
Tests/LibWeb/Ref/svg-mask-maskUnits-userSpaceOnUse.html
Normal file
13
Tests/LibWeb/Ref/svg-mask-maskUnits-userSpaceOnUse.html
Normal file
|
@ -0,0 +1,13 @@
|
|||
<link rel="match" href="reference/simple-svg-mask-ref.html" />
|
||||
<svg width="200" viewBox="-10 -10 120 120">
|
||||
<defs>
|
||||
<mask id="myMask" maskUnits="userSpaceOnUse">
|
||||
<!-- Everything under a white pixel will be visible -->
|
||||
<rect x="0" y="0" width="100" height="100" fill="white" />
|
||||
<!-- Everything under a black pixel will be invisible -->
|
||||
<rect x="0" y="0" width="50" height="100" fill="black" />
|
||||
</mask>
|
||||
</defs>
|
||||
<rect x="-10" y="-10" width="120" height="120" fill="blue" />
|
||||
<rect x="10" y="10" width="80" height="80" fill="red" mask="url(#myMask)" />
|
||||
</svg>
|
Loading…
Reference in a new issue