Skip to content

Fixed Width/Height attrs for percentage values#245

Open
aliaghdam wants to merge 4 commits into
davatron5000:masterfrom
aliaghdam:master
Open

Fixed Width/Height attrs for percentage values#245
aliaghdam wants to merge 4 commits into
davatron5000:masterfrom
aliaghdam:master

Conversation

@aliaghdam

Copy link
Copy Markdown

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
Copy Markdown
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