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

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 UTC