Re: [csswg-drafts] [css-position-3] Making a stickypos in a scroller also see the viewport edges (#8286)

> Can we do something like
> 
> ```
> .sp{
>    sticky-origin: "sticky-parent";
> }
> 
> .sp .sc{
>    sticky-parent: "sticky-parent"; /* viewport | "user-defined: sticky-origin" */
> }
> ```

I would rather have a solution that is more generic that doesn't limit to just `position: sticky`.

```
.ancestor {
    container-root: foo;
}

/* .ancestor > .foo > .bar > .baz > .nested-child */
.nested-child {
    container-ancestor: foo;
}
```

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


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

Received on Wednesday, 5 April 2023 07:31:21 UTC