mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-07 03:45:42 +00:00
Reftests for bug 448831.
This commit is contained in:
parent
8ecf716aec
commit
a86173c233
23
layout/reftests/svg/dynamic-feFlood-01.svg
Normal file
23
layout/reftests/svg/dynamic-feFlood-01.svg
Normal file
@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
Any copyright is dedicated to the Public Domain.
|
||||
http://creativecommons.org/licenses/publicdomain/
|
||||
-->
|
||||
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" onload="m();">
|
||||
<title>Testcase for dynamic feFlood changes</title>
|
||||
<!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=448831 -->
|
||||
<script>
|
||||
function m() {
|
||||
document.getElementById("feFlood").setAttribute("flood-color", "lime");
|
||||
}
|
||||
</script>
|
||||
|
||||
<defs>
|
||||
<filter id="f1" filterUnits="objectBoundingBox" primitiveUnits="objectBoundingBox" x="0" y="0" width="1" height="1">
|
||||
<feFlood id="feFlood" x="0" y="0" width="100%" height="100%" flood-color="lime"/>
|
||||
</filter>
|
||||
</defs>
|
||||
<g filter="url(#f1)">
|
||||
<rect x="0" y="0" width="100%" height="100%" fill="red" opacity="0"/>
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 809 B |
23
layout/reftests/svg/dynamic-feImage-01.svg
Normal file
23
layout/reftests/svg/dynamic-feImage-01.svg
Normal file
@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
Any copyright is dedicated to the Public Domain.
|
||||
http://creativecommons.org/licenses/publicdomain/
|
||||
-->
|
||||
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" onload="m();">
|
||||
<title>Testcase for dynamic feImage changes</title>
|
||||
<!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=448831 -->
|
||||
<script>
|
||||
function m() {
|
||||
var xlinkNS = "http://www.w3.org/1999/xlink";
|
||||
document.getElementById("feImage").removeAttributeNS(xlinkNS, "href");
|
||||
}
|
||||
</script>
|
||||
|
||||
<defs>
|
||||
<filter id="f1" filterUnits="objectBoundingBox" primitiveUnits="objectBoundingBox" x="0" y="0" width="1" height="1">
|
||||
<feImage id="feImage" x="0" y="0" width="100%" height="100%" style="color-interpolation-filters: srgb;"/>
|
||||
</filter>
|
||||
</defs>
|
||||
<rect width="100%" height="100%" fill="lime"/>
|
||||
<rect width="100%" height="100%" filter="url(#f1)"/>
|
||||
</svg>
|
After Width: | Height: | Size: 918 B |
@ -18,6 +18,8 @@ include moz-only/reftest.list
|
||||
== currentColor-03.svg pass.svg
|
||||
== dynamic-conditions-01.svg pass.svg
|
||||
== dynamic-clipPath-01.svg pass.svg
|
||||
== dynamic-feFlood-01.svg pass.svg
|
||||
== dynamic-feImage-01.svg pass.svg
|
||||
== dynamic-link-style-01.svg pass.svg
|
||||
== dynamic-rect-01.svg dynamic-rect-01-ref.svg
|
||||
== dynamic-rect-02.svg dynamic-rect-02-ref.svg
|
||||
|
Loading…
Reference in New Issue
Block a user