Is there a way to acquire the actual current cursor style regardless of various overlays, overlaps, pseudo-elements and pseudo-classes?
Experiment sandbox here: https://codesandbox.io/s/loving-shaw-3c2zl?file=/src/styles.css
el.addEventListener('click', function(ev) {
const style = window.getComputedStyle(ev.target).cursor
console.log(ev.target, style)
})
div.Two:hover { // reports 'grab' on click
cursor: grab;
}
div.Two::before {
cursor: crosshair; // reports 'auto' on click
}
This Q/A doesn't address this specifically: how to use javascript get current cursor style from browser