OLD | NEW |
1 <!DOCTYPE HTML> | 1 <!DOCTYPE HTML> |
2 Test for crbug.com/380885: images should not be requested in an SVG image contex
t.<br><br> | 2 Test for crbug.com/380885: images should not be requested in an SVG image contex
t.<br><br> |
3 Image loaded via object should show a green background with a cross-origin image
of Abe Lincoln:<br> | 3 Image loaded via object should show a green background with a cross-origin image
of Abe Lincoln:<br> |
4 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlin
k" width="100" height="100"> | 4 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlin
k" width="100" height="100"> |
5 <rect width="100%" height="100%" fill="#0f0"/> | 5 <rect width="100%" height="100%" fill="#0f0"/> |
6 <rect x="20%" y="20%" width="60%" height="60%" stroke-width="1" stroke="blac
k" fill="transparent"/> | 6 <rect x="20%" y="20%" width="60%" height="60%" stroke-width="1" stroke="blac
k" fill="transparent"/> |
7 <image xlink:href="resources/abe.png" x="20%" y="20%" width="60%" height="60
%"/> | 7 <image xlink:href="resources/abe.png" x="20%" y="20%" width="60%" height="60
%"/> |
8 </svg> | 8 </svg> |
9 | 9 |
10 <br> | 10 <br> |
11 Image loaded via img should show a green background with fallback content instea
d of the remote image of Abe Lincoln:<br> | 11 Image loaded via img should show a green background without the remote image of
Abe Lincoln:<br> |
12 <svg width="100" height="100"> | 12 <svg width="100" height="100"> |
13 <rect width="100%" height="100%" fill="#0f0"/> | 13 <rect width="100%" height="100%" fill="#0f0"/> |
14 <rect x="20%" y="20%" width="60%" height="60%" stroke-width="1" stroke="blac
k" fill="transparent"/> | 14 <rect x="20%" y="20%" width="60%" height="60%" stroke-width="1" stroke="blac
k" fill="transparent"/> |
15 <image xlink:href="non-existent-resource-to-produce-fallback-content" x="20%
" y="20%" width="60%" height="60%"/> | 15 </svg> |
16 </svg> | |
OLD | NEW |