Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / security / svg-image-with-css-import.html
blob7c61abbb8315871f6dc444916b0f035dd713667c
1 <!DOCTYPE HTML>
2 Test for crbug.com/382296: CSS imports should not load in an SVG image context.<br><br>
3 This test passes if there is a green square below:<br>
4 <img id="image" src="resources/image-with-css-import.svg" width="100" height="100">
5 <script>
6 if (window.testRunner)
7 testRunner.waitUntilDone();
9 document.getElementById('image').onload = function() {
10 // FIXME: crbug.com/382170 SVG onload event bug.
11 setTimeout(function() {
12 if (window.testRunner)
13 testRunner.notifyDone();
14 }, 30);
16 </script>