Re: [csswg-drafts] [css-anchor-1] How it should work with `position: fixed`? (#8583)

Should it be possible to position a fixed-position element in one direction by referencing the viewport but in the other direction using anchor positioning? It doesn't work in Chrome Canary at the moment but it would be useful e.g.:

```css
.anchored {
  position: fixed;
  left: anchor(right);
  top: 0;
}
```

Look at the Shift example on the [Floating UI JavaScript library homepage](https://floating-ui.com/) for a look at the sort of thing I mean. 

-- 
GitHub Notification of comment by o-t-w
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8583#issuecomment-1596102717 using your GitHub account


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

Received on Sunday, 18 June 2023 11:04:46 UTC