- From: Emilio Cobos Álvarez via GitHub <sysbot+gh@w3.org>
- Date: Mon, 03 Feb 2025 22:08:45 +0000
- To: public-css-archive@w3.org
Ok, great, just wanted to make sure we agree on the behavior :)
I think my language might not be 100% accurate because you also need to not propagate if the element itself is in the top layer. But yeah, pseudo code would be:
```js
function propagateHover(hoveredElement) {
hoveredElement.states.add(':hover');
for (let current = hoveredElement; current && !current.isInTopLayer; current = current.flatTreeParentElement)
current.states.add(':hover');
}
```
--
GitHub Notification of comment by emilio
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11185#issuecomment-2632228607 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Monday, 3 February 2025 22:08:46 UTC