AMP-base-carousel when used in Wordpress via the official plugin and when using visible count parameters doesn't work on Desktop because of hardcoded padding-top value on the i-amphtml-sizer node.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.
Description
AMP-base-carousel when used in Wordpress via the official plugin and when using
visible count
parameters doesn't work on Desktop because of hardcoded padding-top value on thei-amphtml-sizer
node.Code Snippet used:
Generated output
<amp-base-carousel id="home_carousel" layout="responsive" width="411" height="584" visible-count="(max-width: 1024px) 1, 4" class="i-amphtml-layout-responsive i-amphtml-layout-size-defined" i-amphtml-layout="responsive"><i-amphtml-sizer style="display:block;**padding-top:142.0925%**"></i-amphtml-sizer>
Because the padding-top property is appended as Style attribute the generated rules from visible-count' would not apply (screenshot below).
Reproduction Steps
visible-count
would not work due to the winning in style padding-top property value.Relevant Logs
No response
Browser(s) Affected
No response
OS(s) Affected
No response
Device(s) Affected
No response
AMP Version Affected
No response