[csswg-drafts] [css-position] Is the "nearest scrollport" in DOM hierarchy or in containing block hierarchy? (#7483)

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

== [css-position] Is the "nearest scrollport" in DOM hierarchy or in containing block hierarchy? ==
https://drafts.csswg.org/css-overflow-3/#nearest-scrollport says:
For convenience, a box’s nearest scrollport is the [scrollport](https://drafts.csswg.org/css-overflow-3/#scrollport) of its nearest scroll container ancestor.

It doesn't say the "ancestor" is in DOM hierarchy or in containing block hierarchy.

For the following case:
```
<div id="outer-scroller" style="overflow: scroll; position: relative">
  <div id="inner-scroller" style="overflow: scroll">
    <div style="position: absolute">
      <div style="position: sticky">
```

Is the nearest scrollport of the stickily positioned element "inner-scroller" or "outer-scroller"?

"outer-scroller" looks to make more sense to me, but I think the spec needs clarification. 


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


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

Received on Sunday, 10 July 2022 16:01:51 UTC