Chrome 34 now supports responsive images

For general web development questions that are not specifically related to CSS HTML Validator. This includes (but is not limited to) general HTML, CSS, Accessibility, JavaScript, and SEO questions.
Post Reply
User avatar
RSteinwand
Rank VI - Professional
Posts: 596
Joined: Mon Jun 09, 2008 2:12 pm
Location: Fargo, ND
Contact:

Chrome 34 now supports responsive images

Post by RSteinwand »

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
Posts: 3785
Joined: Sat Dec 11, 2004 9:23 am
Location: Near Dallas, TX
Contact:

Re: Chrome 34 now supports responsive images

Post by Albert Wiersch »

Thanks Rick. Fortunately, CSE HTML Validator (as of v14.01) already supports the "srcset" attribute. :D
Albert Wiersch, CSS HTML Validator Developer • Download CSS HTML Validator FREE Trial
User avatar
RSteinwand
Rank VI - Professional
Posts: 596
Joined: Mon Jun 09, 2008 2:12 pm
Location: Fargo, ND
Contact:

Re: Chrome 34 now supports responsive images

Post by RSteinwand »

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