W3C home > Mailing lists > Public > www-style@w3.org > June 2013

Re: media query definitions

From: David Newton <david@davidnewton.ca>
Date: Fri, 21 Jun 2013 20:25:21 -0400
Cc: Behrang Saeedzadeh <behrangsa@gmail.com>, W3C CSS Mailing List <www-style@w3.org>
Message-Id: <468F4AC5-6220-494E-99CF-49797B4054F6@davidnewton.ca>
To: Tab Atkins Jr. <jackalmage@gmail.com>
On 2013-06-21, at 5:00 PM, Tab Atkins Jr. <jackalmage@gmail.com> wrote:

> On Fri, Jun 21, 2013 at 7:58 AM, Behrang Saeedzadeh <behrangsa@gmail.com> wrote:
>> It would be nice, if there was a way to define a media query, and use it in
>> multiple @media blocks:
>> 
>> @media-def #my-media only screen and (max-width: 480px), only screen and
>> (max-device-width: 480px), etc.;
>> 
>> @media(#my-media) {
>> /* css rules */
>> }
>> 
>> The syntax can of course be totally different.
>> 
>> This would eliminate some duplication where there are multiple media query
>> blocks in various CSS files that target the same device, etc.
>> 
>> What do you guys think?
> 
> Yup, this was very recently discussed favorably.  We want to add some
> way to make an author-extensible Media Query.
> 
> ~TJ
> 

Given the positive response to this, what would the next steps be? The Responsive Images Community Group (http://responsiveimages.org/) is very interested in this, and we'd be happy to help in any way we can.

Dave
Received on Saturday, 22 June 2013 00:25:46 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:12 UTC