- From: Anne van Kesteren via GitHub <noreply@w3.org>
- Date: Sun, 05 Oct 2025 13:45:34 +0000
- To: public-css-archive@w3.org
``` <masonf> sakhapov: what do we think about the syntactic sugar part? <masonf> annevk: that sounded pretty awful, I liked the suggestion to start smaller. ``` That was not my proudest moment. What I should have said is that overloading the `EventTarget` API to do something quite different when used on `CSSPseudoElement` instances does not strike me as a good idea as it makes it harder to learn the API and will make you question what other objects end up doing something strange with `addEventListener()` and friends. I would start out simple and then investigate usage in the wild to see if further abstractions are warranted. What to add as syntactic sugar is much better to determine once a number of libraries have taken a stab at solving the problem a couple of years in. (This also avoids the problem of adding too much API all at once only to see it barely being adopted. "Baby steps.") -- GitHub Notification of comment by annevk Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12163#issuecomment-3369069502 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Sunday, 5 October 2025 13:45:35 UTC