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

Re: media query definitions

From: Behrang Saeedzadeh <behrangsa@gmail.com>
Date: Sun, 23 Jun 2013 23:17:19 +1000
Message-ID: <CAERAJ+_C-JgDB0smbga7361cXx+Ewi-kmQ7-7PHuz8g6VMQHqw@mail.gmail.com>
To: David Newton <david@davidnewton.ca>
Cc: "Tab Atkins Jr." <jackalmage@gmail.com>, W3C CSS Mailing List <www-style@w3.org>
@Tab, do you by any chance have a reference to the recent thread in which
this was discussed?

Cheers,
Behrang Saeedzadeh
http://www.behrang.org


On Sat, Jun 22, 2013 at 10:25 AM, David Newton <david@davidnewton.ca> wrote:

> 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 Sunday, 23 June 2013 13:17:45 UTC

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