-
-
Notifications
You must be signed in to change notification settings - Fork 927
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
620 additions
and
182 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
# media-feature-range-notation | ||
|
||
Specify context or prefix notation for media feature ranges. | ||
|
||
<!-- prettier-ignore --> | ||
```css | ||
@media (width >= 600px) and (min-width: 600px) {} | ||
/** ↑ ↑ | ||
* These media feature notations */ | ||
``` | ||
|
||
Media features of the range type can be written using prefixes or the more modern context notation. | ||
|
||
Because `min-` and `max-` both equate to range comparisons that include the value, they may be [limiting in certain situations](https://drafts.csswg.org/mediaqueries/#mq-min-max). | ||
|
||
## Options | ||
|
||
`string`: `"context"|"prefix"` | ||
|
||
### `"context"` | ||
|
||
Media feature ranges _must always_ use context notation. | ||
|
||
The following patterns are considered problems: | ||
|
||
<!-- prettier-ignore --> | ||
```css | ||
@media (min-width: 1px) {} | ||
``` | ||
|
||
<!-- prettier-ignore --> | ||
```css | ||
@media (min-width: 1px) and (max-width: 2px) {} | ||
``` | ||
|
||
The following patterns are _not_ considered problems: | ||
|
||
<!-- prettier-ignore --> | ||
```css | ||
@media (width >= 1px) {} | ||
``` | ||
|
||
<!-- prettier-ignore --> | ||
```css | ||
@media (1px <= width <= 2px) {} | ||
``` | ||
|
||
### `"prefix"` | ||
|
||
Media feature ranges _must always_ use prefix notation. | ||
|
||
The following patterns are considered problems: | ||
|
||
<!-- prettier-ignore --> | ||
```css | ||
@media (width >= 1px) {} | ||
``` | ||
|
||
<!-- prettier-ignore --> | ||
```css | ||
@media (1px <= width <= 2px) {} | ||
``` | ||
|
||
The following patterns are _not_ considered problems: | ||
|
||
<!-- prettier-ignore --> | ||
```css | ||
@media (min-width: 1px) {} | ||
``` | ||
|
||
<!-- prettier-ignore --> | ||
```css | ||
@media (min-width: 1px) and (max-width: 2px) {} | ||
``` |
Oops, something went wrong.