JSFiddle - React, Tailwind, and code Playground

CSS

a[href*=": \" "] {}
#some_id_that_ends_in_a\: > a {}

body.c1 div: hover {}
body.c2 div : hover {}
body.c3 div :hover {}

body.c1, div: hover {}
body.c2, div : hover {}
body.c3, div :hover {}

JavaScript

window.onload = () => {
  const sheets = document.styleSheets;

  for (const sheet of sheets) {
    // Check if the sheet matches the loaded URL
    try {
      // Iterate over the CSS rules in the stylesheet
      for (const rule of sheet.cssRules) {
        // Check if the rule has a selectorText property
        if (rule.selectorText) {
          console.log('Selector:', rule.selectorText);
        }
      }
    } catch (e) {
      console.error('Error accessing rules:', e);
    }
  }
};