content
content copied to clipboard
Potentially misleading information on the "not" operator in media queries
MDN URL
https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_media_queries/Using_media_queries
What specific section or headline is this issue about?
Creating complex media queries
What information was incorrect, unhelpful, or incomplete?
Note: In most cases, the all media type is used by default when no other type is specified. However, if you use the not or only operators, you must explicitly specify a media type.
This is true with respect to "only", but I couldn't find a source for the claim that if you use "not", you must specify a media type. I looked in https://www.w3.org/TR/mediaqueries-5/
What did you expect to see?
Note: In most cases, the all media type is used by default when no other type is specified. However, if you use the only operator, you must explicitly specify a media type.
Do you have any supporting links, references, or citations?
No response
Do you have anything more you want to share?
No response
MDN metadata
Page report details
- Folder:
en-us/web/css/css_media_queries/using_media_queries
- MDN URL: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_media_queries/Using_media_queries
- GitHub URL: https://github.com/mdn/content/blob/main/files/en-us/web/css/css_media_queries/using_media_queries/index.md
- Last commit: https://github.com/mdn/content/commit/4bf03c104b1bca2068dbff927020e7f802c4af7e
- Document last modified: 2024-02-02T16:58:29.000Z