I had a script as follows const custElem = document.createElement('my-elem') let res = custElem.matches(':defined'); console.log(`custElem.matches(':defined
I'm looking for a way to change the CSS rules for pseudo-class selectors (such as :link, :hover, etc.) from JavaScript. So an analogue of the CSS code: a:hover