mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-25 22:29:07 +00:00
Reftest to check that the opacity of element referencing a gradient is respected
This commit is contained in:
parent
650e701071
commit
34f403af6d
24
layout/reftests/svg/opacity-and-gradient-01.svg
Executable file
24
layout/reftests/svg/opacity-and-gradient-01.svg
Executable 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 |
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user