[whatwg] So if media-queries aren't for determining the media to be used what are they for?
mail at matthewwilcox.com
Thu May 17 06:16:24 PDT 2012
On 17 May 2012 11:05, Kornel Lesiński <kornel at geekhood.net> wrote:
> On Wed, 16 May 2012 21:11:41 +0100, Matthew Wilcox <mail at matthewwilcox.com>
>>> What solution do you have in mind that would let you add a 'tv'
>>> breakpoint site-wide for all images that have been prepared for it, without
>>> need to
>>> update code that embeds those images? And is that really saving much
>>> Wouldn't you have to revisit every page anyway to test the new layout?
>> That following link does it:
> Sorry, you're right. I glanced over URI template and assumed it was for
> media="(case: breakpoint1)" in <source>.
> regards, Kornel Lesiński
That particular solution is, to my mind, the most flexible and useful
implementation I've seen, because it's really about breakpoint
management and abstraction - which is what all responsive elements
need in order to work together well and be future-friendly.
It does, no doubt, have some technical considerations and implications
I'm not aware of. I would love to see this worked on more, I don't
think there's much more I can add to it from my authors perspective,
it needs work from an implementor perspective. But as a pattern, it
has a lot of plus points going for it.
More information about the whatwg