-
Notifications
You must be signed in to change notification settings - Fork 20
Updates demos (closes #61) #62
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
Conversation
<source media="(min-width: 480px) and (max-width: 639px)" | ||
srcset="http://respimg.cdnconnect.com/basic-implentation/test_landscape_1@2x.jpg"> | ||
<source media="(min-width: 640px)" | ||
srcset="http://respimg.cdnconnect.com/basic-implentation/test_landscape_1@4x.jpg"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These aren't art direction, right? So should be srcset with 'x' on img?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They are... The file names are misleading. We should change that in a followup PR (need to change it at the CDN though, or abandon the CDN)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK.
Another thing, I'm not sure it's a good idea to write the media queries like that. What if the viewport is 479.5px? It seems better to only use max-width and move the srcset on the third source to img. The "print" source should probably be placed first so that it can actually be selected.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is now done.
Updates demos (closes #61) Merging so we can push this out. We can fix other bugs separately.
Nice work! |
Awesome, thanks guys! |
@yoavweiss and I fixed up the demos to use the modern syntax.