Image Compare Block: AMP Errors #16093
Labels
AMP
[Block] Image Compare
[Pri] Normal
[Type] Bug
When a feature is broken and / or not performing as intended
Projects
Steps to reproduce the issue
What I expected
No errors.
What happened instead
"AMP HTML Tag has an invalid layout specified by its attributes."
From https://github.com/ampproject/amphtml/blob/master/spec/amp-html-layout.md, it mentions for
fill
:The element takes the space available to it—both width and height. In other words, the layout and size of a fill element matches its parent. For an element to fill its parent container, specify the "fill" layout, and ensure the parent container specifies position:relative or position:absolute.
I don't see
position:relative
orposition:absolute
.The parent element of the image slider does have
layout=responsive
, but from the docs:I don't see the containing element with a width/height when looking at the source of https://kraft.blog/2020/06/covid-cut/amp/
Screenshots
HTML:
The text was updated successfully, but these errors were encountered: