Re: [csswg-drafts] [css-ui] select:hover and select:active styles (#11185)

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