Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / hidpi / image-srcset-data-src.html
blobe9b0b65d1f996b55fb49bf33fc335e8d41f3d13d
1 <html>
2 <head>
3 <script src="../../resources/js-test.js"></script>
4 <script>
5 addEventListener("load", function() {
6 shouldBeTrue('document.getElementById("foo").clientWidth==150');
7 }, false);
8 </script>
9 </head>
11 <body id="body">
12 <div>This test passes if the image below looks like a 2x2 grid (yellow, gray, light green, dark green).</div>
13 <img id="foo" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAAA8CAIAAAAL5NQ9AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH2woaBQc4oLEFpAAAABl0RVh0Q29tbWVudABDcmVhdGVkIHdpdGggR0lNUFeBDhcAAACMSURBVHja7dNBEYAgFEVRPhHMYgAzUIsmVnFvB/fsoQb+ObfBmzMvxneW1D1vzz2wFiEUQiFEKIRCKIQIhVAIhRChEAqhECIUQiEUQoRCKIRCiFAIhVAIEep3xTWTLzzu5oVCKIRCiFAIhVAIEQqhEAohQiEUQiFEKIRCKIQIhVAIhRChEAqhECLUZi3VEwcBMGr1NgAAAABJRU5ErkJggg==">
14 </body>
15 </html>