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 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:14:21 UTC