Sha256: b5fdc718fca98912d579c11ea1b899707578117513746afe6041629bf3f8de57
Contents?: true
Size: 1014 Bytes
Versions: 23
Compression:
Stored size: 1014 Bytes
Contents
# media-feature-name-whitelist Specify a whitelist of allowed media feature names. <!-- prettier-ignore --> ```css @media (min-width: 700px) {} /** ↑ * This media feature name */ ``` ## Options `array|string|regex`: `["array", "of", "unprefixed", /media-features/ or "regex"]|"media-feature"|/regex/` Given: ``` ["max-width", "/^my-/"] ``` The following patterns are considered violations: <!-- prettier-ignore --> ```css @media (min-width: 50em) {} ``` <!-- prettier-ignore --> ```css @media print and (min-resolution: 300dpi) {} ``` <!-- prettier-ignore --> ```css @media (min-width < 50em) {} ``` <!-- prettier-ignore --> ```css @media (10em < min-width < 50em) {} ``` The following patterns are _not_ considered violations: <!-- prettier-ignore --> ```css @media (max-width: 50em) {} ``` <!-- prettier-ignore --> ```css @media (my-width: 50em) {} ``` <!-- prettier-ignore --> ```css @media (max-width > 50em) {} ``` <!-- prettier-ignore --> ```css @media (10em < my-width < 50em) {} ```
Version data entries
23 entries across 23 versions & 1 rubygems