Re: [csswg-drafts] [cssom][web-animations-1] Consistent behavior for invalid pseudos in getComputedStyle/getAnimations (#11081)

> Throwing is not web compatible for `getComputedStyle`, see #6501

Thanks for the reference. We should still resolve whether or not we want to throw here, and if it makes sense that we throw when trying to set the target or contruct an animation for an invalid pseudo elment selector.

My read of the linked discussion is that we decided not to throw for getComputedStyle for compat reasons only, so I guess I'd propose that we throw for `Element.getAnimations({pseudoElement: <invalid>})` to be self consistent within web-animations with setting an invalid target pseudo and make it likely developers would see the error.

-- 
GitHub Notification of comment by flackr
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11081#issuecomment-2438639827 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 25 October 2024 19:25:33 UTC