Skip to content

Files

Latest commit

 

History

History
37 lines (24 loc) · 599 Bytes

media-feature-name-blacklist.md

File metadata and controls

37 lines (24 loc) · 599 Bytes

Pattern: Use of blacklisted media feature

Issue: -

Description

Caveat: Media feature names within a range context are currently ignored.

Examples

array|string|regex: ["array", "of", "unprefixed", "media-features" or "regex"]|"media-feature"|/regex/

Given:

["max-width", "/^some-/"]

The following patterns are considered violations:

@media (max-width: 50em) {}
@media (some-width: 50em) {}

The following patterns are not considered violations:

@media (min-width: 50em) {}
@media print and (min-resolution: 300dpi) {}