-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
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
Wide images are overflowing with <amp-img> but not with non-AMP <img> #17084
Comments
/to @aghassemi |
related to #17053 |
This issue seems to be in Pending Triage for awhile. @aghassemi Please triage this to an appropriate milestone. |
I think we triaged this along with #17053 to be due to the |
Yes, I think this is resolved with |
Yes, it is resolved. |
What's the issue?
Wide
<amp-img>
images overflow the content area when its parent element has a width offit-content
. Behavior is consistent with fixed, intrinsic, and responsive layouts.The same images in non-AMP
<img>
do not overflow the content area.How do we reproduce the issue?
I've set up a demonstration of the AMP behavior compared to the same non-AMP images
<figure>
parent around the<amp-img>
and applyingfit-content
as its width.where the CSS ruleset is:
src
,width
,height
,srcset
, andsizes
attributes to a size wider than the content area:For example, here is the
<img>
HTML:Here is the AMP HTML:
Please note, the content space is highlighted by the striped background to provide a quick glance of the image's relationship to the space.
This issue may be related to Issue #17053.
What browsers are affected?
Chrome - Version 67.0.3396.99 (Official Build) (64-bit)
Firefox Quantum - 61.0.1 (64-bit)
Firefox Developer Edition - 62.0b11 (64-bit)
Safari Version 11.1.2 (13605.3.8)
MacOS Version 10.13.5
MacOS Version 10.13.6
Did not test on Windows.
Which AMP version is affected?
1531800879103
We noticed this issue on April 19, 2018 per amp-wp/1086.
The text was updated successfully, but these errors were encountered: