1 # media-query-list-comma-space-before
3 Require a single space or disallow whitespace before the commas of media query lists.
6 @media screen and (color) ,projection and (color) {}
13 `string`: `"always"|"never"|"always-single-line"|"never-single-line"`
17 There *must always* be a single space before the commas.
19 The following patterns are considered violations:
22 @media screen and (color),projection and (color) {}
26 @media screen and (color)
27 ,projection and (color) {}
30 The following patterns are *not* considered violations:
33 @media screen and (color) ,projection and (color) {}
37 @media screen and (color) ,
38 projection and (color) {}
43 There *must never* be whitepace before the commas.
45 The following patterns are considered violations:
48 @media screen and (color) ,projection and (color) {}
52 @media screen and (color)
53 , projection and (color) {}
56 The following patterns are *not* considered violations:
59 @media screen and (color),projection and (color) {}
63 @media screen and (color),
64 projection and (color) {}
67 ### `"always-single-line"`
69 There *must always* be a single space before the commas in single-line media query lists.
71 The following patterns are considered violations:
74 @media screen and (color),projection and (color) {}
77 The following patterns are *not* considered violations:
80 @media screen and (color) ,projection and (color) {}
84 @media screen and (color)
85 , projection and (color) {}
89 @media screen and (color)
90 ,projection and (color) {}
93 ### `"never-single-line"`
95 There *must never* be whitepace before the commas in single-line media query lists.
97 The following patterns are considered violations:
100 @media screen and (color) , projection and (color) {}
103 The following patterns are *not* considered violations:
106 @media screen and (color),projection and (color) {}
110 @media screen and (color)
111 ,projection and (color) {}
115 @media screen and (color)
116 , projection and (color) {}