Skip to content

Commit

Permalink
📖 Examples of Spaces Present in amp-img src attribute (#32790)
Browse files Browse the repository at this point in the history
* Unable to reproduce 23092

* Make example more representative

* Malformatted HTML
  • Loading branch information
kristoferbaxter committed Feb 22, 2021
1 parent c63620f commit be16efe
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
Binary file added examples/img/bigbuckbunny copy.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions test/manual/amp-carousel.amp.html
Expand Up @@ -89,5 +89,10 @@ <h1>amp #0</h1>
<amp-img src="https://lh3.googleusercontent.com/5rcQ32ml8E5ONp9f9-Rf78IofLb9QjS5_0mqsY1zEFc=w400-h300-no" width=400 height=300></amp-img>
<amp-img src="https://lh3.googleusercontent.com/Z4gtm5Bkxyv21Z2PtbTf95Clb9AE4VTR6olbBKYrenM=w400-h300-no" width=400 height=300></amp-img>
</amp-carousel>

<amp-carousel width=360 height=360 type="slides" autoplay controls loop delay="6000" id="slider-with-preview" layout="responsive">
<amp-img src="/examples/img/bigbuckbunny copy.jpg" width=360 height=360 layout="responsive" alt="aa" lightbox></amp-img>
<amp-img src="/examples/img/bigbuckbunny.jpg" width=360 height=360 layout="responsive" alt="aa" lightbox></amp-img>
</amp-carousel>
</body>
</html>
2 changes: 2 additions & 0 deletions test/manual/amp-img.amp.html
Expand Up @@ -40,6 +40,8 @@ <h1>amp-image</h1>
<div placeholder>Waiting for the image!</div>
</amp-img>

<amp-img src="/examples/img/bigbuckbunny copy.jpg" width="626" height="417" layout="responsive" alt="aa"></amp-img>

<amp-img src="https://lh3.googleusercontent.com/5rcQ32ml8E5ONp9f9-Rf78IofLb9QjS5_0mqsY1zEFc=w400-h300-no-n" width=400 height=300 layout=responsive
heights="(min-width:760px) 33%, (min-width:500px) 75%, 125%" ></amp-img>

Expand Down

0 comments on commit be16efe

Please sign in to comment.