Re: [csswg-drafts] [css-anchor-position-1][css-display-4] Anchor Positioning and Display Order (#9356)

> Note that "as an option" is still on the table; what I'm pushing back against is "as a default". If we want to make tab ordering more controllable _from CSS_, with some explicitly-designed properties, I think that's a _great_ idea. But it goes beyond Anchor Positioning and is instead a separate feature that could be used much more broadly.

I would hope that such a feature would be general, and would handle similar situations with "pure" absolute or even relative positioning. Right?

E.g.

```
<div style="margin-top: 2em;">and then this <button>second</button></div>
<div style="position:relative;top:-3em;">Please click this <button>first</button>,</div>
```

![Screenshot showing "first" button displayed before "second" button](https://github.com/w3c/csswg-drafts/assets/29559695/3b63db18-f125-48f7-a8c8-0c56ca320e69)

Yes that's definitely a strawperson example, but it illustrates the issue that positioning can already be used to display things out of order. So if there's a feature to fix that, it should apply to all positioning modes.

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


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

Received on Monday, 6 May 2024 19:11:25 UTC