If I have an element with the following style rule:
.element::before {
box-shadow: inset 0 0 0 2px white, inset 0 0 0 12px tomato;
}
How can I select this element with Javascript, and check if it contains that specific box-shadow
style? Thanks.
Can I do something like this?
const element = document.querySelector('.element::before').hasStyle(' box-shadow: inset 0 0 0 2px white, inset 0 0 0 12px tomato;');