Re: [csswg-drafts] [css-pseudo] Who is currently using CSSPseudoElement and what events can target them? (#4619)

The CSS Working Group just discussed `[css-pseudo] Who is currently using CSSPseudoElement and what events can target them?`, and agreed to the following:

* `RESOLVED: Add a warning to the section and close this issue but continue work`

<details><summary>The full IRC log of that discussion</summary>
&lt;dael> Topic: [css-pseudo] Who is currently using CSSPseudoElement and what events can target them?<br>
&lt;dael> github: https://github.com/w3c/csswg-drafts/issues/4619<br>
&lt;dael> florian: This is more of a request for information. CSS Pseudol Element class exists and is an event target, but it's not clear what API uses and what events it recieves. When the issue was raised I think intent was figure out who should we talk to when we refine events on Pseudos<br>
&lt;emilio> q+<br>
&lt;dael> florian: This has been sitting in GH for a while without feedback. This is a louder call to figure out who is the crowd interested<br>
&lt;dael> emilio: I think main consumer is web animations. like css animations that target css pseudo elements. Not aware of other consumers.<br>
&lt;dael> florian: I'm a little fuzzy on this b/c decision to stop using pseudo elements as a class on animation, but pointed out there still is. But that would be the group<br>
&lt;dael> astearns: One of the reasons we pushed to have css pseduo element historically is we thought regions could be made out of pseudo elements but that's moot at this point<br>
&lt;dael> florian: I see reasons why it's useful, but before drafting new things it would be good to know what's done<br>
&lt;dael> gregwhitworth: Are yous aying you can't animation pseudo elements?<br>
&lt;dael> florian: No, but I believe API shape of animations has changed and it's no longer done through pseudol element class set up in pseudos 4. I could be wrong. A bit out of my area<br>
&lt;dael> astearns: Anyone else with a known dependency or use case for css pseudo element as an event target?<br>
&lt;dael> astearns: So it may be down to whatever use case web animations might have?<br>
&lt;dael> florian: Plus what sanketj and I want to add<br>
&lt;dael> sanketj: Does anyone use pseudo element not as an event target? Web animation sis only thing I could tell which has since been dropped. I didn't find any users of pseudo element at all<br>
&lt;dael> florian: I have use cases, but not existing usage<br>
&lt;dael> iank_: I think this has been one of the things that's an obvious gap on api side. Nice to get target if it's exposed but not high priority so hasn't been impl<br>
&lt;dael> sanketj: Should we try to remove css pseudo element and come at it again in a different way? Not sure the process<br>
&lt;dael> astearns: If there are no consumers and little impl interest it's plausable to remove it and retain intent of fixing the hole in the API. Need motivating use cases to spur impl interest<br>
&lt;dael> florian: I don't know. If we suspect API shape is wrong maybe remove. but I believe there are use cases that we're slowly getting ot. Having a place where we accumulate our way to useful thing it would be good. If we start by deleting it doesn't speed up getting there<br>
&lt;dael> astearns: Fair point<br>
&lt;dael> astearns: sanketj do you have an argument for deletion?<br>
&lt;dael> sanketj: Not specifically. originally looked around highlight api and there are not highlight events. pseudo element being an event target prompted us to look. I don't think I have a way to have it useful in highlight, but I don't have a strong reason to delete or keep<br>
&lt;dael> florian: I have other use cases to look into in the near future. I'd like to keep working. For now it's hear so no rush to delete<br>
&lt;dael> iank_: One thing to keep in mind is only before and after pseudo elements make sense with this API. Perhaps merging in that this might change is a path<br>
&lt;dael> sanketj: Yes, only tree abiding was designed originally I think. I don't believe it works for range based<br>
&lt;dael> iank_: Yeah, for example doesn't make sense for ::first-line<br>
&lt;dael> fantasai: Would work for any, but only defined for tree abiding. Every pseudo element has originating element. If you highlight it will cross multiple pseudo elements as you cross multiple elements<br>
&lt;dael> iank_: In related to geometry apis and event propegation the tree abiding ones are much siplier<br>
&lt;dael> florian: I'd suggest slap a warning across this area of the spec saying don't rush to impl but if you have use cases or problems bring forward<br>
&lt;iank_> sorry sanketj :)<br>
&lt;sanketj> thanks for covering it :)<br>
&lt;dael> astearns: As a way forward put a warning on this part of the spec that this is early and needs fleshing out. Do we close this issue with a reoslution to have a warning or do we need to dive into web animations usage more<br>
&lt;dael> florian: Since we're not resolving to delete it I don't think we need the explaination urgently<br>
&lt;dael> astearns: Prop: Add a warning to the section and close this issue<br>
&lt;dael> astearns: Objecitons?<br>
&lt;dael> RESOLVED: Add a warning to the section and close this issue but continue work<br>
</details>


-- 
GitHub Notification of comment by css-meeting-bot
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4619#issuecomment-763818225 using your GitHub account


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

Received on Wednesday, 20 January 2021 17:43:10 UTC