Chrome 34 now supports responsive images

Post here if your message doesn't fit into another forum but is still about web development. Includes site critiques, web hosting and server questions, helpful software and resources, and more.
Post Reply
User avatar
RSteinwand
Rank VI - Professional
Rank VI - Professional
Posts: 600
Joined: Mon Jun 09, 2008 2:12 pm
Location: Fargo, ND
Contact:

Chrome 34 now supports responsive images

Post by RSteinwand » Wed Apr 09, 2014 11:05 pm

http://blog.chromium.org/2014/02/chrome ... _9316.html

Just FYI.... :D

srcset will help resolve this problem by letting Web developers provide multiple resources in varying resolutions for a single image. The browser can then pick the resource that matches the device's capabilities. Here’s an example of the code:

Code: Select all

<img alt="A rad wolf." src="pic1x.jpg" srcset="pic1x.jpg 1x, pic2x.jpg 2x, pic4x.jpg 4x">
Rick

User avatar
Albert Wiersch
Site Admin
Site Admin
Posts: 3452
Joined: Sat Dec 11, 2004 9:23 am
Location: Near Dallas, TX
Contact:

Re: Chrome 34 now supports responsive images

Post by Albert Wiersch » Wed Apr 09, 2014 11:25 pm

Thanks Rick. Fortunately, CSE HTML Validator (as of v14.01) already supports the "srcset" attribute. :D
Image
Albert Wiersch

User avatar
RSteinwand
Rank VI - Professional
Rank VI - Professional
Posts: 600
Joined: Mon Jun 09, 2008 2:12 pm
Location: Fargo, ND
Contact:

Re: Chrome 34 now supports responsive images

Post by RSteinwand » Thu Apr 10, 2014 8:37 am

Hi Albert,

I was wondering about that, but I'm out of the office so no way to check it. At least we have a real-world application that supports it now.
Rick

Post Reply