1 # media-query-list-comma-newline-before
3 Require a newline or disallow whitespace before the commas of media query lists.
6 @media screen and (color)
7 , projection and (color) {}
14 `string`: `"always"|"always-multi-line"|"never-multi-line"`
18 There *must always* be a newline before the commas.
20 The following patterns are considered violations:
23 @media screen and (color), projection and (color) {}
27 @media screen and (color),
28 projection and (color) {}
31 The following patterns are *not* considered violations:
34 @media screen and (color)
35 ,projection and (color) {}
39 @media screen and (color)
41 projection and (color) {}
44 ### `"always-multi-line"`
46 There *must always* be a newline before the commas in multi-line media query lists.
48 The following patterns are considered violations:
51 @media screen and (color),
52 projection and (color) {}
55 The following patterns are *not* considered violations:
58 @media screen and (color), projection and (color) {}
62 @media screen and (color)
63 ,projection and (color) {}
67 @media screen and (color)
69 projection and (color) {}
72 ### `"never-multi-line"`
74 There *must never* be whitespace before the commas in multi-line media query lists.
76 The following patterns are considered violations:
79 @media screen and (color)
80 ,projection and (color) {}
84 @media screen and (color)
86 projection and (color) {}
89 The following patterns are *not* considered violations:
92 @media screen and (color), projection and (color) {}
96 @media screen and (color),
97 projection and (color) {}