-
Notifications
You must be signed in to change notification settings - Fork 382
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
<iframe> height="100%" stripped to empty value throwing validation error #3277
Comments
Percentage dimensions are not valid in AMP. The AMP plugin is currently passing through invalid units: #2146. Nevertheless, there is currently auto-conversion of amp-wp/includes/sanitizers/class-amp-base-sanitizer.php Lines 318 to 321 in 93276f7
The question remains as to whether we can add some similar conversion for |
Hi @westonruter, Thank you for your reply.
Indeed. That's exactly what happens,
Yes, There's a container <div style="width: 100%; height: 500px; position: relative; overflow: hidden;">
<iframe style="position: absolute; left: 0; right: 0; bottom: 0; top: 0; border: 0;" src="https://landbot.io/u/H-22078-X2B4IWABAFJE2ROQ/index.html" width="100%" height="100%" frameborder="0"></iframe>
</div> |
Same thing here, specifically in the case of responsive embeds. A very common implementation is probably Bootstrap's. Glad to see it's being addressed. Original embed code in case it helps the PR: <div style="padding-top: 56.25%; position: relative;">
<iframe style="position: absolute; top: 0; right: 0; bottom: 0; left: 0;" src="..." scrolling="no" allowfullscreen="allowfullscreen" data-embed="true" width="100%" height="100%" frameborder="0"></iframe>
</div> |
Please test fix in #3295. |
<iframe src="https://landbot.io/u/H-22078-X2B4IWABAFJE2ROQ/index.html" width="100%" height="100%" frameborder="0">
This code throws an error on the AMP Validator saying
I checked #402 and it seems that % values on height attributes get stripped to empty by default? Am I missing something here?
The text was updated successfully, but these errors were encountered: