From a5a70fdb0db624133dae618141c9acf7a36ee9aa Mon Sep 17 00:00:00 2001 From: Christopher Kirk-Nielsen Date: Wed, 22 Jan 2025 20:52:04 -0500 Subject: [PATCH] Update files/en-us/web/api/window/matchmedia/index.md Co-authored-by: wbamberg --- files/en-us/web/api/window/matchmedia/index.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/files/en-us/web/api/window/matchmedia/index.md b/files/en-us/web/api/window/matchmedia/index.md index 9b7be742801bac0..c9ee8da6aba27e4 100644 --- a/files/en-us/web/api/window/matchmedia/index.md +++ b/files/en-us/web/api/window/matchmedia/index.md @@ -25,9 +25,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. - +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. ### Return value A new {{domxref("MediaQueryList")}} object for the media query. Use this object's