matches property
Returns TRUE if the list of media queries matches the state of the current window, or FALSE otherwise.
This property is read-only.
![]() |
Syntax
| JavaScript |
|---|
ptr = object.matches |
Property values
Type: boolean
State of the current window.
| Value | Condition |
|---|---|
|
The list of media queries matches the state of the current window. |
|
The list of media queries doesn't match the state of the current window. |
Standards information
- CSSOM View Module, Section 4.1
See also
Show:
