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

Re: @import -- allow at any place in stylesheet.

From: Pete Boere <pete@the-echoplex.net>
Date: Wed, 18 Jan 2012 09:46:17 +0000
Message-ID: <CAKZZz6fKzvGUWkASaY0ZxboYPuZf5kH+NnPz7z1Hyq_WPDzBNw@mail.gmail.com>
To: www-style@w3.org
Most preprocessors allow @import statements throughout a stylesheet. IMHO
it looks little odd aesthetically so I can see some merit in the current
restriction.

In practice I often use a seed file which contains only @import statements.
This manages complexity and works  with existing standards.


On 18 January 2012 03:11, Boris Zbarsky <bzbarsky@mit.edu> wrote:

> On 1/17/12 9:06 PM, Ambrose LI wrote:
>
>> 2012/1/17 Sylvain Galineau<sylvaing@microsoft.**com<sylvaing@microsoft.com>
>> >:
>>
>>> So what's the fix? How do you make the failure non-silent?
>>>
>>>
>> That’s would, I suppose, not be a CSS problem per se, but purely a
>> browser-specific implementation issue. Perhaps what we need is just
>> making it non-silent if developer tools are running.
>>
>
> Gecko already reports a misplaced @import rule:
>
>  Unrecognized at-rule or error parsing at-rule '@import'. @
> data:text/html,<style>foo%20{}**%20@import%20url(bar);%20</**style>:1
>
> You just have to actually look in the error console or web console or
> Firebug console or whatever console you want.
>
> -Boris
>
>


-- 
Pete Boere
Web Developer
Received on Wednesday, 18 January 2012 09:46:51 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:48 GMT