[csswg-drafts] [css-anchor-1] Allow anchoring to popover invoker (#8671)

jpzwarte has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-anchor-1] Allow anchoring to popover invoker ==
Use case: you have a `<table>` with N rows and you want to use a single popover element for all rows in the table.

```html
<div id="popover" popover>...</div>

<tr>
  <td>
    <button popovertarget="popover" popovertargetaction="show"></button>
  </td>
</tr>
<tr>
  <td>
    <button popovertarget="popover" popovertargetaction="show"></button>
  </td>
</tr>
<!-- etc -->
```

Afaics you currently have to be explicit in the anchor name. So this scenario is not possible without the use of JS?

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8671 using your GitHub account


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

Received on Monday, 3 April 2023 10:28:39 UTC