You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe this is a regression introduced in #3728.
Expected Behaviour
The layout attribute should only be added to AMP components. Handling a height=100% attribute on a non-AMP should get converted to a style="height:100%".
Do not alter or remove anything below. The following sections will be managed by moderators only.
Any percentage-based width or height should get converted from width/height attributes into style properties.
If a non-100% value is supplied, this wouldn't trigger any special AMP layout even for AMP elements. In such cases I think mapping to style properties should be done. So if width="50%" is present, it should get converted to style="width:50%" even for AMP elements, perhaps.
Bug Description
Given this markup generated by the Co-Blocks plugin'
coblocks/shape-divider
block:This is resulting in a validation error:
I believe this is a regression introduced in #3728.
Expected Behaviour
The
layout
attribute should only be added to AMP components.Handling a.height=100%
attribute on a non-AMP should get converted to astyle="height:100%"
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
Implementation brief
QA testing instructions
Go to the AMP page
Verify that the
height
andwidth
attributes on thesvg
element have the value100%
and there is nolayout
attribute added.Demo
Changelog entry
The text was updated successfully, but these errors were encountered: