Chromium Code Reviews| Index: LayoutTests/svg/filters/feimage-invalid-image.svg |
| diff --git a/LayoutTests/svg/filters/feimage-invalid-image.svg b/LayoutTests/svg/filters/feimage-invalid-image.svg |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..58ac5d15f1b640d436f7382c2b1c2759c896c748 |
| --- /dev/null |
| +++ b/LayoutTests/svg/filters/feimage-invalid-image.svg |
| @@ -0,0 +1,30 @@ |
| +<?xml version="1.0" encoding="UTF-8"?> |
| +<svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> |
|
Stephen White
2015/09/17 13:58:14
Nit: suggest we specify a width/height that explic
f(malita)
2015/09/17 15:02:11
Done.
|
| + <defs> |
| + <filter id="missing_href"> |
| + <feImage out="out1"/> |
| + <feColorMatrix type="matrix" in="out1" values="1 0 0 0 0 0 -1 0 0 1 0 0 1 0 0 0 0 0 -1 1"/> |
| + </filter> |
| + |
| + <filter id="missing_image"> |
| + <feImage out="out1" xlink:href="missing.png"/> |
| + <feColorMatrix type="matrix" in="out1" values="1 0 0 0 0 0 -1 0 0 1 0 0 1 0 0 0 0 0 -1 1"/> |
| + </filter> |
| + |
| + <filter id="broken_decode"> |
| + <feImage out="out1" xlink:href="data:image/gif;base64,FOO"/> |
| + <feColorMatrix type="matrix" in="out1" values="1 0 0 0 0 0 -1 0 0 1 0 0 1 0 0 0 0 0 -1 1"/> |
| + </filter> |
| + |
| + <filter id="unsupported_format"> |
| + <feImage out="out1" xlink:href="data:image/foo;base64,"/> |
| + <feColorMatrix type="matrix" in="out1" values="1 0 0 0 0 0 -1 0 0 1 0 0 1 0 0 0 0 0 -1 1"/> |
| + </filter> |
| + </defs> |
| + |
| + <rect x="100" y="50" width="200" height="100" fill="red" filter="url(#missing_href)"/> |
| + <rect x="100" y="200" width="200" height="100" fill="red" filter="url(#missing_image)"/> |
| + <rect x="100" y="350" width="200" height="100" fill="red" filter="url(#broken_decode)"/> |
| + <rect x="100" y="500" width="200" height="100" fill="red" filter="url(#unsupported_format)"/> |
| + |
| +</svg> |