@passmarked/css
Version:
Rules related to checking the compatability of the CSS on the page ensuring the stylesheet works on older browsers too
28 lines (21 loc) • 904 B
Markdown
The CSS specification defines a syntax and grammar with which the language is written. Conformance to this syntax and grammar is needed for your code to be correctly interpreted. `` is used to pull in styles from external stylesheets.
```css
/* Invalid */
"subs.css";
print {
"print-main.css";
body { font-size: 10pt }
}
/* Valid */
"subs.css";
"print-main.css" print;
print {
body { font-size: 10pt }
}
```
# How do I fix this ?
`` should precede all other types of rules except `` rules. It should also not be used in conditional group at-rules.
# Resources
* [Syntax and basic data types](https://www.w3.org/TR/CSS21/syndata.html#at-rules)
* [Assigning property values, Cascading, and Inheritance](https://www.w3.org/TR/CSS21/cascade.html#at-import)
* [MDN ](https://developer.mozilla.org/en/docs/Web/CSS/@import)