Re: [csswg-drafts] Pseudo classes for the `interestfor` API (#12154)

Quick summary of the rough direction of the conversation so far:

- `:interest-invoker(possible | partial | total)`:
    - `possible` matches when an element has the `interestfor` attribute. (Perhaps it must also be pointing to a valid idref?)
    - `partial` matches when an interest invoker has "partial interest", but *not* "full interest". (This is a special case.)
    - `total` matches when an interest invoker has "partial interest" *or* "full interest". (This is the general/common case.)
    - `:interest-invoker` (without parens) is equivalent to `:interest-invoker(total)`
- `:interest-target(possible | partial | total)`:
    - `possible` matches when an element is the *target* (matches the idref value) of an element with the `interestfor` attribute. 
    - `partial` matches the *target* of an interest invoker that has "partial interest", but *not* "full interest".
    - `total` matches the *target* of an interest invoker that has "partial interest" *or* "full interest".
    - `:interest-target` (without parens) is equivalent to `:interest-target(total)`

Open questions:
1. Confirmation of the above shape generally.
2. Functionality of `partial`: does the idref need to be valid? Should `:interest-target()` support `partial`?
3. Naming:
    a. `:interest-invoker` and `:interest-target`
    b. `possible`, `partial`, and `total`


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


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

Received on Wednesday, 11 June 2025 16:58:20 UTC