I'm not sure I understand CSS variables. In the example below, why does the div not appear when the button is hovered over?
:root {
--op: hidden;
}
button:hover {
background-color: yellow;
--op: visible;
}
div {
visibility: var(--op);
width: 100px;
height: 100px;
background-color: red;
}
<button>Hover</button><div></div>