matches() DOM method

- LS

Method of testing whether or not a DOM element matches a given selector. Formerly known (and largely supported with prefix) as matchesSelector.

Chrome

  1. 4 - 33: Partial support
  2. 34 - 110: Supported
  3. 111: Supported
  4. 112 - 114: Supported

Edge

  1. 12 - 14: Partial support
  2. 15 - 110: Supported
  3. 111: Supported

Safari

  1. 3.1 - 4: Not supported
  2. 5 - 7: Partial support
  3. 7.1 - 16.3: Supported
  4. 16.4: Supported
  5. 16.5 - TP: Supported

Firefox

  1. 2 - 3.5: Not supported
  2. 3.6 - 33: Partial support
  3. 34 - 110: Supported
  4. 111: Supported
  5. 112 - 113: Supported

Opera

  1. 9 - 11.1: Not supported
  2. 11.5 - 20: Partial support
  3. 21 - 94: Supported
  4. 95: Supported

IE

  1. 5.5 - 8: Not supported
  2. 9 - 10: Partial support
  3. 11: Partial support

Chrome for Android

  1. 111: Supported

Safari on iOS

  1. 3.2: Not supported
  2. 4 - 7.1: Partial support
  3. 8 - 16.3: Supported
  4. 16.4: Supported
  5. 16.5: Supported

Samsung Internet

  1. 4: Partial support
  2. 5 - 19.0: Supported
  3. 20: Supported

Opera Mini

  1. all: Not supported

Opera Mobile

  1. 10 - 11: Not supported
  2. 11.1 - 12.1: Partial support
  3. 73: Supported

UC Browser for Android

  1. 13.4: Supported

Android Browser

  1. 2.1: Not supported
  2. 2.2 - 4.4.4: Partial support
  3. 111: Supported

Firefox for Android

  1. 110: Supported

QQ Browser

  1. 13.1: Supported

Baidu Browser

  1. 13.18: Supported

KaiOS Browser

  1. 2.5: Supported
  2. 3: Supported

Partial support refers to supporting the older specification's "matchesSelector" name rather than just "matches".

Resources:
MDN Web Docs - Element matches
WebPlatform Docs