W3C home > Mailing lists > Public > www-style@w3.org > October 2012

Re: Proposal: @-rule for containing exclusive @media rules

From: Pete Boere <pete@the-echoplex.net>
Date: Mon, 22 Oct 2012 09:24:27 +0100
Message-ID: <CAKZZz6e2bFTdbHDum=d8M14tXg8FqTUfc62N1W0LqkuzSF5_pA@mail.gmail.com>
To: Boris Zbarsky <bzbarsky@mit.edu>
Cc: Fran├žois REMY <fremycompany_pub@yahoo.fr>, www-style list <www-style@w3.org>
>
> @switch import {
>        "desktop.css" (min-width: 1000px);
>        "phone.css" (min-width: 480px);
>        "small-phone.css" all;
>    }


Doesn't this already work with current specs and less fuss?

 @import "desktop.css" screen (min-width: 1000px);
 @import "phone.css" screen (min-width: 480px);
 @import "small-phone.css";
Received on Monday, 22 October 2012 08:24:52 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:21:01 GMT