JSFiddle - React, Tailwind, and code Playground

by Darby Rathbone

HTML

<div>1<span>2</span>3</div>4

CSS

:not(:hover) {
    background:rgba(0, 255, 0, .25);
}

JavaScript

var a = [];
[].forEach.call(document.styleSheets, function (e) {
    if (e.cssRules) {
        [].slice.call(e.cssRules).forEach(function (f) {
           
            if ((f.cssText.split("{")[0].indexOf(':hover')+1) || f.selectorText.indexOf(':hover') + 1){ 
                                                               a.push(f);                                       console.log(f);}
        })


    }
});
console.log(a);
document.body.appendChild(document.createTextNode(a.join("</br>")));