3 Specify single or double quotes around strings.
6 a[id="foo"] { content: "x"; }
8 * These quotes and these quotes */
11 Quotes within comments are ignored.
16 /* 'And this is also fine' */
19 Single quotes in a charset @-rule are ignored as using single quotes in this context is incorrect according the [CSS specification](https://www.w3.org/TR/CSS2/syndata.html#x57).
23 /* fine regardless of configuration */
26 The `--fix` option on the [command line](../../../docs/user-guide/cli.md#autofixing-errors) can automatically fix most of the problems reported by this rule.
30 `string`: `"single"|"double"`
34 Strings *must always* be wrapped with single quotes.
36 The following patterns are considered violations:
46 The following patterns are *not* considered violations:
57 a { content: "x'y'z"; }
62 Strings *must always* be wrapped with double quotes.
64 The following patterns are considered violations:
74 The following patterns are *not* considered violations:
85 a { content: 'x"y"z'; }
88 ## Optional secondary options
90 ### `avoidEscape`: `true|false`, defaults to `true`
92 Allows strings to use single-quotes or double-quotes so long as the string contains a quote that would have to be escaped otherwise.
94 For example, with `"single", { "avoidEscape" : false }`.
96 The following patterns are considered violations:
99 a { content: "x'y'z"; }
103 a[id="foo'bar'baz"] {}
106 The following patterns are *not* considered violations: