Re: [w3ctag/design-reviews] Declarative Interactions (Issue #1111)

tabatkins left a comment (w3ctag/design-reviews#1111)

> Regarding the naming/indirection (question 2): Acknowledged that the convention adopted is idiomatic for CSS. That being said, it would be helpful for me and other reviewers if you could clarify the specific reason(s) that you were warned against using the selectors approach. Please could you add that info to the explainer?

I think I was the one that warned them off - the reason is indeed just that we have an established idiom in CSS for linking two elements, and it's "have one establish a name, and the other refer to that name".

We (the CSSWG) do have reasons for why that particular pattern is generally better than using a selector in a value, but I don't think the reasoning particularly needs to be repeated in every feature that wants to link two elements together. "It's the well-established CSS idiom for referring to one element from another element" should be a sufficient reason here, I think.

(The CSSWG could write up this reasoning in its wiki, if that would be helpful for you and the rest of the TAG in future reviews; I just don't think it's needed for any individual feature review to justify this decision on its own.)

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3ctag/design-reviews/issues/1111#issuecomment-3169317061
You are receiving this because you are subscribed to this thread.

Message ID: <w3ctag/design-reviews/issues/1111/3169317061@github.com>

Received on Friday, 8 August 2025 21:13:25 UTC