зеркало из https://github.com/mozilla/gecko-dev.git
Bug 652991 - Part 8. Reftest for filter. r=heycam
MozReview-Commit-ID: 10Sz21LAoNK --HG-- extra : rebase_source : d23c2c8eddc6fd5dc811f8bcd5ae4b8ded8260c4 extra : source : 0aa854d56095a7be13f2ee5fdb4bf2117bb3560d
This commit is contained in:
Родитель
856763a293
Коммит
7887bc3448
|
@ -438,3 +438,4 @@ skip-if(Android) pref(layout.css.mix-blend-mode.enabled,true) == blend-differenc
|
|||
# https://drafts.csswg.org/css-values/#local-urls
|
||||
== use-localRef-marker-01.svg use-localRef-marker-01-ref.svg
|
||||
== use-localRef-clipPath-01.svg use-localRef-clipPath-01-ref.svg
|
||||
== use-localRef-filter-01.svg use-localRef-filter-01-ref.svg
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<title>Reference for filter linked to local-ref URL</title>
|
||||
<defs>
|
||||
<filter id="blurFilter" x="-10" y="-10" width="100" height="100">
|
||||
<feGaussianBlur in="SourceGraphic" stdDeviation="10" />
|
||||
</filter>
|
||||
</defs>
|
||||
<rect x="10" y="10" width="80" height="80" fill="blue" filter="url(#blurFilter)"/>
|
||||
<rect x="10" y="110" width="80" height="80" fill="blue" filter="url(#blurFilter)"/>
|
||||
<rect x="10" y="210" width="80" height="80" fill="blue" filter="url(#blurFilter)"/>
|
||||
</svg>
|
После Ширина: | Высота: | Размер: 576 B |
|
@ -0,0 +1,22 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<title>Testcase for filter linked to local-ref URL</title>
|
||||
<defs>
|
||||
<filter id="blurFilter1" x="-10" y="-10" width="100" height="100">
|
||||
<feGaussianBlur in="SourceGraphic" stdDeviation="0" />
|
||||
</filter>
|
||||
<filter id="blurFilter2" x="-10" y="-10" width="100" height="100">
|
||||
<feGaussianBlur in="SourceGraphic" stdDeviation="10" />
|
||||
</filter>
|
||||
<filter id="blurFilter3" x="-10" y="-10" width="100" height="100">
|
||||
<feGaussianBlur in="SourceGraphic" stdDeviation="10" />
|
||||
</filter>
|
||||
</defs>
|
||||
<style>
|
||||
#f3 {
|
||||
filter: url(#blurFilter3);
|
||||
}
|
||||
</style>
|
||||
<use xlink:href="use-localRef-filter-resource.svg#f1"/>
|
||||
<use xlink:href="use-localRef-filter-resource.svg#f2" filter="url(#blurFilter2)"/>
|
||||
<use xlink:href="use-localRef-filter-resource.svg#f3"/>
|
||||
</svg>
|
После Ширина: | Высота: | Размер: 882 B |
|
@ -0,0 +1,16 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<defs>
|
||||
<filter id="blurFilter1" x="-10" y="-10" width="100" height="100">
|
||||
<feGaussianBlur in="SourceGraphic" stdDeviation="10" />
|
||||
</filter>
|
||||
<filter id="blurFilter2" x="-10" y="-10" width="100" height="100">
|
||||
<feGaussianBlur in="SourceGraphic" stdDeviation="0" />
|
||||
</filter>
|
||||
<filter id="blurFilter3" x="-10" y="-10" width="100" height="100">
|
||||
<feGaussianBlur in="SourceGraphic" stdDeviation="0" />
|
||||
</filter>
|
||||
</defs>
|
||||
<rect id="f1" x="10" y="10" width="80" height="80" fill="blue" filter="url(#blurFilter1)"/>
|
||||
<rect id="f2" x="10" y="110" width="80" height="80" fill="blue"/>
|
||||
<rect id="f3" x="10" y="210" width="80" height="80" fill="blue"/>
|
||||
</svg>
|
После Ширина: | Высота: | Размер: 778 B |
Загрузка…
Ссылка в новой задаче