You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am creating a repository where different sized images would be really nice for mobile version. Short story long, I've seen there's some html allowed including <img> and the attribute src, so I propose also allowing srcset for responsive images like this:
Although looking more into it, srcset is dependent on the resolution and not on the device width. I'd normally use media queries, but that's a lot of css that is probably not allowed in github. Can anyone think of another solution to allow for different images in different device sizes?
Maybe a couple of attributes called data-desktop and data-mobile or others could work, but that'd require some css in your part and it's highly opinionated
I am creating a repository where different sized images would be really nice for mobile version. Short story long, I've seen there's some html allowed including
<img>
and the attributesrc
, so I propose also allowingsrcset
for responsive images like this:The text was updated successfully, but these errors were encountered: