Re: [csswg-drafts] [selectors] Parameterized selectors (#10567)

> I've somewhat recently proposed something similar in the context of view transitions: [#8320 (comment)](https://github.com/w3c/csswg-drafts/issues/8320#issuecomment-1877522852)

@noamr Your proposal captures part of the selectors to then use as values in the declarations. This proposal is different in the sense that it captures values from the selectors and uses those values in the same selector. There is a clear distinction between reading a value and actually using it – which also was a concern @mirisuzanne [raised](https://github.com/w3c/csswg-drafts/issues/10567#issuecomment-2226545200)


> For this use-case specifically, the proposal only seems to address exact match. Is that good enough to solve most use-cases here?

One use-case that popped up – and matches this assumption – is to style the element that triggers a popover.

```css
[popovertarget={id}] {
}
```

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


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

Received on Monday, 19 August 2024 08:50:48 UTC