SVGImageCache isn't invalidated for <img> on dynamic page scale changes
[WebKit-https.git] / LayoutTests / svg / as-image / image-respects-deviceScaleFactor.html
1 <html>
2 <head>
3     <script>
4     function init() {
5         if (!window.layoutTestController)
6             return;
7
8         layoutTestController.waitUntilDone();
9         layoutTestController.setBackingScaleFactor(2, function () { layoutTestController.notifyDone(); });
10     }
11     window.onload = init;
12     </script>
13 </head>
14 <p>This test passes if both of the circles have sharp edges when deviceScaleFactor=2.</p>
15 <img style="width: 128px;" src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMjgiIGhlaWdodD0iMTI4Ij4KPGNpcmNsZSBmaWxsPSJibGFjayIgY3g9IjY0IiBjeT0iNjQiIHI9IjY0IiAvPgo8L3N2Zz4K">
16 <img style="width: 128px;" src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgoJPGNpcmNsZSBmaWxsPSJibGFjayIgY3g9IjY0IiBjeT0iNjQiIHI9IjY0IiAvPgo8L3N2Zz4=">
17 </html>