Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!doctype html>
<html amp lang="en">
  <head>
    <meta charset="utf-8">
    <script async src="https://cdn.ampproject.org/v0.js"></script>
    <title>Amp-Img Placeholder+Fallback SVG Bug</title>
    <link rel="canonical" href="/canonical.html">
    <meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1">
    <style amp-boilerplate>body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}</style><noscript><style amp-boilerplate>body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:none}</style></noscript>
  </head>
  <body>
    <amp-img noloading src="404.jpg" alt="404" height=100 width=600 layout="responsive">
      <span placeholder>Placeholder</span>
    </amp-img>
    <amp-img noloading src="404.jpg" alt="404" height=100 width=600 layout="responsive">
      <span fallback>Fallback</span>
    </amp-img>
    <amp-img noloading src="404.jpg" alt="404" height=100 width=600 layout="responsive">
      <span placeholder fallback>Placeholder Fallback</span>
    </amp-img>
    <amp-img noloading src="404.jpg" alt="404" height=100 width=600 layout="responsive">
      <span placeholder>Placeholder</span>
      <span fallback>Fallback</span>
    </amp-img>
  </body>
</html>
Output 300px

This bin was created anonymously and its free preview time has expired (learn why). — Get a free unrestricted account

Dismiss x
public
Bin info
anonymouspro
0viewers