Explaining The Last Clause of the src-n Grammar

Tab Atkins explains the third value of the src-n solution and explains why it’s a better fit than the srcset approach.

The first two parts are pretty simple: we got Media Queries, and we got “simple” srcset (a list of image urls and pixel densities). Everyone’s behind that stuff, it’s easy, no problem.

What people have been complaining about is the last part of the grammar, described in the Variable-Sized Images section.

An excerpt from Explaining The Last Clause of the src-n Grammar

View original article

Subscribe to our Newsletter

Add your email address and receive an email every Friday covering off everything worth knowing about building your websites responsively.