| <!DOCTYPE HTML> |
| Test for crbug.com/380885: images should not be requested in an SVG image context.<br><br> |
| Image loaded via object should show a green background with a cross-origin image of Abe Lincoln:<br> |
| <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="100" height="100"> |
| <rect width="100%" height="100%" fill="#0f0"/> |
| <rect x="20%" y="20%" width="60%" height="60%" stroke-width="1" stroke="black" fill="transparent"/> |
| <image xlink:href="resources/abe.png" x="20%" y="20%" width="60%" height="60%"/> |
| </svg> |
| |
| <br> |
| Image loaded via img should show a green background with fallback content instead of the remote image of Abe Lincoln:<br> |
| <svg width="100" height="100"> |
| <rect width="100%" height="100%" fill="#0f0"/> |
| <rect x="20%" y="20%" width="60%" height="60%" stroke-width="1" stroke="black" fill="transparent"/> |
| <image xlink:href="non-existent-resource-to-produce-fallback-content" x="20%" y="20%" width="60%" height="60%"/> |
| </svg> |