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

media query definitions

From: Behrang Saeedzadeh <behrangsa@gmail.com>
Date: Sat, 22 Jun 2013 00:58:56 +1000
Message-ID: <CAERAJ+_Pxi0-G1LhmD0q=2XPW6tiZX6Ox_J5Hse74cqBK9DyMA@mail.gmail.com>
To: W3C CSS Mailing List <www-style@w3.org>
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?

Cheers,
Behrang Saeedzadeh
http://www.behrang.org
Received on Friday, 21 June 2013 14:59:24 UTC

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