Re: media query definitions

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