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

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

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Tue, 17 Jan 2012 22:11:46 -0500
Message-ID: <4F163872.9020201@mit.edu>
To: www-style@w3.org
On 1/17/12 9:06 PM, Ambrose LI wrote:
> 2012/1/17 Sylvain Galineau<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
Received on Wednesday, 18 January 2012 03:12:15 GMT

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