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

>
> @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";
>

Wrong. In the case the width is e.g. 1100 all three files will be loaded
while the @switch solution would just load one of them.

Sebastian

Received on Monday, 22 October 2012 08:32:37 UTC