-
Notifications
You must be signed in to change notification settings - Fork 711
Pseudo classes for the interesttarget
API
#12154
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Yeah, these naming patterns aren't quite consistent with what we use elsewhere. What about:
Do we want to expose a state keyword for things that are potentially interest invokers/targets, but that are currently without any interest? Or is that ambiguous when interest isn't being shown? |
That doesn't surprise me! Thanks for the help with suggestions.
I like both. I assume the second suggestion was
Those were my initial stabs at names too, but the confusing thing is that the attribute is called
Hmm. I think that can be handled with |
No, it was a functional pseudoclass that took a few keywords letting you indicate exactly what variety of interest you wanted to match on (while the non-functional one defaulted to some form of interest that we think is likely the most useful). So
I think that's fine - the
I wasn't sure there was a way to express that; not all negative selectors actually can be written explicitly in a simple manner. I think a shorthand is convenient, yes, since you're likely writing your actual-interest selectors as just |
Oh! Duh, reading it again, I can see this clearly. I like this idea! Are there other functional pseudo classes that also work without the
Fair enough.
Ok - I guess maybe the shorthand would be |
Yes,
Something like that. |
The explainer for
interesttarget
proposes four new pseudo classes::has-interest
- matches on the invoker when the user is currently showing interest in that invoker.:has-partial-interest
- matches on the invoker when the user is currently showing partial interest in that invoker. (They have merely focused the invoker, but haven't fully-activated it via the hot-key.):target-of-interest
- matches on the target of the invoker when the user is showing interest in the invoker for this target.:target-of-partial-interest
- matches on the target of the invoker when the user is showing partial interest in the invoker for this target.To hopefully help with the terminology:
A few notes:
:has-interest
means "has any kind of interest" (including partial), and:has-partial-interest
means "specifically only has partial interest". But suggestions appreciated.:has-interest
or just:interest
? Andtarget-of-interest
is somewhat descriptive but still leaves something to be desired. Maybe it’s ok.Thoughts?
The text was updated successfully, but these errors were encountered: