Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

2.1.20 [CSS-Level2-2009] Section 6.3, The @import rule


The specification states:

The '@import' rule allows users to import style rules from other style sheets. In 
CSS 2.1, any @import rules must precede all other rules (except the @charset rule, 
if present). See the section on parsing for when user agents must ignore @import 
rules. The '@import' keyword must be followed by the URI of the style sheet to 
include. A string is also allowed; it will be interpreted as if it had url(...) 
around it.

Quirks Mode (All Versions)

The @import rule is not ignored if it does not precede all other rules (except the @charset rule, if present).

IE8 Mode (All Versions)

@import rules allow invalid characters in font names.

The @import rule is ignored when the print media type is specified.

All Document Modes (All Versions)

@import rules are applied only from style sheets that are linked three levels deep.


The specification states:

A target medium matches a media list if one of the items in the media list is the 
target medium or 'all'.

Quirks Mode and IE7 Mode (All Versions)

The target medium must match one of the items in the media list. The all specifier is not supported.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.