incorrect use of media(print)
- Dominant language
- Markdown
- Stars
- 11k
- Forks
- 23.2k
- Avg merge
- 2d 9h
- Merged PRs (30d)
- 331
Description
### MDN URL
https://developer.mozilla.org/en-US/docs/Web/CSS/if
### What specific section or headline is this issue about?
_No response_
### What information was incorrect, unhelpful, or incomplete?
According to the CSSWG spec it is not possible to have a media-type i.e. media(print) in the if() query. I raised a bug with the Chromium team (https://issues.chromium.org/issues/443752823) and was pointed to the spec (https://drafts.csswg.org/css-values-5/#if-notation). This means the references in this article are incorrect.
### What did you expect to see?
Different examples without media(print) which currently is out of line with what the CSSWG spec states.
### 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/if`
* MDN URL: https://developer.mozilla.org/en-US/docs/Web/CSS/if
* GitHub URL: https://github.com/mdn/content/blob/main/files/en-us/web/css/if/index.md
* Last commit: https://github.com/mdn/content/commit/06639598f7805417a0331fe403304af9c7ecc2de
* Document last modified: 2025-08-13T02:06:22.000Z
Contributor guide
Assessment
This issue has not been assessed yet.