Skip to content

Commit

Permalink
Update files/en-us/web/api/window/matchmedia/index.md
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
wbamberg and github-actions[bot] authored Jan 22, 2025
1 parent bd72b39 commit cae99e1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions files/en-us/web/api/window/matchmedia/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ matchMedia(mediaQueryString)

- `mediaQueryString`
- : A string specifying the media query to parse into a {{domxref("MediaQueryList")}}.

> [!NOTE]
> Just like in CSS, any [media feature](/en-US/docs/Web/CSS/@media#media_features) must be wrapped in parentheses inside the expression. For example: `matchMedia('(max-width: 600px)')` will work, whereas `matchMedia('max-width: 600px')` will not. Keywords for media types (`all`, `print`, `screen`) and logical operators (`and`, `or`, `not`, `only`) do not need to be wrapped in parentheses.
Expand Down

0 comments on commit cae99e1

Please sign in to comment.