Skip to content

Files

Latest commit

 

History

History
81 lines (56 loc) · 1.25 KB

import-notation.md

File metadata and controls

81 lines (56 loc) · 1.25 KB

Pattern: Missing notation for @import

Issue: -

Description

Specify string or URL notation for @import rules.

Examples

string: "string"|"url"

"string"

@import rules must always use string notation.

The following patterns are considered problems:

@import url(foo.css);
@import url('foo.css');
@import url("foo.css");

The following patterns are not considered problems:

@import 'foo.css';
@import "foo.css";

"url"

@import rules must always use URL notation.

The following patterns are considered problems:

@import 'foo.css';
@import "foo.css";

The following patterns are not considered problems:

@import url(foo.css);
@import url('foo.css');
@import url("foo.css");

Further Reading