Rules Before @import

Test of Filter

This text will be green if the rule has been applied.

Code Syntax

@media all {}
@import url(styles.css);

Browser Support / Behaviour

Applied By

Not Applied By



Special Notes / Browser Specific Behaviour

Any @import rules in a stylesheet must be placed before all other rules in that stylesheet. Any @import rules that are preceeded by any non-@import rules should be ignored by standards-compliant browsers (so the text in the example block should be red in compliant browsers).

More information