Re: [csswg-drafts] [selectors-5] Add pseudo-class selector to target the element that initiated the outgoing navigation (#11801)

> > * I don't yet see a point in generalizing `sourceElement`'s behavior with form. Do you ever need to style a form that is the source of a navigation in the same way you'd style a link that is the source of the navigation?
> 
> When submitting a search form, one might want to snapshot the input field (and possibly more elements of the form) for use with a view transition.

Sure, but would you style it in the same way as a triggering link? Wouldn't it be `:source-form` or something like that? Is there a use case where putting the source-link and source-form together for styling adds value?

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


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

Received on Wednesday, 3 September 2025 20:04:26 UTC