Skip to content

Resp img#1

Open
attiks wants to merge 5 commits into
Wilto:florians-compromisefrom
attiks:resp_img
Open

Resp img#1
attiks wants to merge 5 commits into
Wilto:florians-compromisefrom
attiks:resp_img

Conversation

@attiks
Copy link
Copy Markdown

@attiks attiks commented Jul 26, 2012

Ignore the first 2 commits, it's just white space

Third commit (https://github.com/attiks/picturefill-proposal/commit/a044619643cb8216cf43f66c0c3896656cc9e1ed) fixes a problem with IE9 and Opera if there wasn't a width set on the img element, it got cloned as width="0"

Fourth commit (https://github.com/attiks/picturefill-proposal/commit/b0ddaf21c8ab2ba2418ab78dade165a5b23363e2) copies some attributes to the newly created img tag: width, height, class, title and alt.
width and height for retina displays
class so it's easy to theme
alt is probably going away
title no idea yet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant