Philipp Partosch 46a936d7de added all files to project | 2 years ago | |
---|---|---|
.. | ||
README.md | 2 years ago | |
index.js | 2 years ago |
Disallow invalid position @import
rules within a stylesheet.
a {}
@import 'foo.css';
/** ↑
* This @import */
Any @import
rules must precede all other valid at-rules and style rules in a stylesheet (ignoring @charset
), or else the @import
rule is invalid.
true
The following patterns are considered violations:
a {}
@import 'foo.css';
@media print {}
@import 'foo.css';
The following patterns are not considered violations:
@import 'foo.css';
a {}
/* some comment */
@import 'foo.css';
@charset 'utf-8';
@import 'foo.css';