Search code examples
amp-html

amp-img error: Layout not supported for: container


Trying to validate my amp-img. In this example: http://staging.laineygossip.com/Sasha-Celeb-Finds-Sienna-Miller/Lifestyle/24695/amp#development=1

I get the error: Layout not supported for: container
In the console, the error is: The specified layout 'CONTAINER' is not supported by tag 'amp-img'

Not sure what this error means.

So far I can't find anything in the docs that relates to this error message.


Solution

  • container is not supported by the layout attribute in <amp-img>. The AMP Docs provide a list of supported layouts you can use.