- From: Psychpsyo (Cameron) via GitHub <noreply@w3.org>
- Date: Thu, 11 Sep 2025 12:38:04 +0000
- To: public-css-archive@w3.org
What would `:clicked` be used for? If some style is tied to an animation (`@keyframes`) so much that it needs to last the entire duration of that animation, shouldn't that be included in the animation itself? And if this is a transition, couldn't you transition out whatever properties you want to apply for a bit longer with a delay? Like so: ```css button { transition: background-color 0s 1s; } button:active { transition: background-color 0s 0s; background-color: green; } ``` This button instantly turns green on press and stays green for 1 second after being released. -- GitHub Notification of comment by Psychpsyo Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1674#issuecomment-3280427524 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 11 September 2025 12:38:05 UTC