Re: [csswg-drafts] [css-conditional-5] Add `scroll-state(scroll-to)` container feature queries (#11191)

Let's leave proposal [#issuecomment-2473522823](https://github.com/w3c/csswg-drafts/issues/11191#issuecomment-2473522823) aside for now.

I've re-updated the proposal to suggest that `scroll-to: right` becomes a syntactic sugar for `not scroll-state(scrollable: right), which would be easier to understand.

That is, the following two ways of writing are equivalent, but `scroll-to` reads better.

```css
@container not scroll-state(scrollable: right) {
  table {
    animation: slide-right .5s linear;
  }
}
```

```css
@container scroll-state(scroll-to: right) {
  table {
    animation: slide-right .5s linear;
  }
}
```

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


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

Received on Thursday, 21 November 2024 09:42:22 UTC