We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tested on Chrome. <amp-img> and <img> pick different sources. <amp-img> will pick a very large source even though sizes says 10vw.
<amp-img>
<img>
10vw
<!doctype html> <html amp lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1"> <script async src="https://cdn.ampproject.org/v0.js"></script> <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> <style amp-custom> img, amp-img { width: 10vw; height: auto; } </style> </head> <body> <amp-img src='http://placehold.it/720x440' width='720' height='480' sizes="10vw" srcset="http://placehold.it/360x240 360w, http://placehold.it/720x480 720w, http://placehold.it/1080x720 1080w, http://placehold.it/1440x960 1440w"> </amp-img> <img src='http://placehold.it/720x440' width='720' height='480' sizes="10vw" srcset="http://placehold.it/360x240 360w, http://placehold.it/720x480 720w, http://placehold.it/1080x720 1080w, http://placehold.it/1440x960 1440w"> </body> </html>
The text was updated successfully, but these errors were encountered:
Dupe: #11575
Sorry, something went wrong.
No branches or pull requests
Tested on Chrome.
<amp-img>
and<img>
pick different sources.<amp-img>
will pick a very large source even though sizes says10vw
.The text was updated successfully, but these errors were encountered: