Reftest to check that the opacity of element referencing a gradient is respected

This commit is contained in:
jwatt%jwatt.org 2007-03-16 22:13:47 +00:00
parent 650e701071
commit 34f403af6d
2 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,24 @@
<svg xmlns="http://www.w3.org/2000/svg" version="1.1">
<title>Testcase for opacity on elements referencing a gradient</title>
<defs>
<linearGradient id="g">
<stop stop-color="red"/>
</linearGradient>
<pattern id="p" width="100%" height="100%">
<rect width="100%" height="100%" fill="red"/>
</pattern>
</defs>
<rect width="100%" height="100%" fill="lime"/>
<!-- test gradient -->
<rect width="25%" height="100%" fill="url(#g)" opacity="0"/>
<rect x="25%" width="25%" height="100%" fill="url(#g)" opacity="0"/>
<!-- test pattern as a bonus -->
<rect x="50%" width="25%" height="100%" fill="url(#p)" opacity="0"/>
<rect x="75%" width="25%" height="100%" fill="url(#p)" opacity="0"/>
</svg>

After

Width:  |  Height:  |  Size: 749 B

View File

@ -1,6 +1,7 @@
== foreignObject-display-01.svg pass.svg
== getElementById-a-element-01.svg pass.svg
== opacity-and-gradient-01.svg pass.svg
== pseudo-classes-01.svg pass.svg
== pseudo-classes-02.svg pseudo-classes-02-ref.svg
== text-in-link-01.svg text-in-link-01-ref.svg