Skip to content
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

Fixed Width/Height attrs for percentage values #245

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

aliaghdam
Copy link

iFrame with percentage width/height values will be breaked because it converts values to int

<iframe src="https://www.youtube.com/embed/Cq2LcFozaPg?rel=0" width="100%" height="396" frameborder="0" allowfullscreen="allowfullscreen"></iframe>

Test this code:
<iframe src="https://www.youtube.com/embed/Cq2LcFozaPg?rel=0"
width="100%" height="396" frameborder="0"
allowfullscreen="allowfullscreen"></iframe>
@davatron5000
Copy link
Owner

@aliaghdam Thanks for this. I thought we solved this in #114 & #116, so @kenhowardpdx and I might have to brainstorm a bit on what to do and what's going wrong. Might even have to write tests! AhhhHhhHH!

This is also maybe in direct competition to #223 which wants to remove/modify this line entirely.

All that is to say, thanks for this and gonna make sure we do it correctly this time around.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants