- From: Simon Pieters via GitHub <noreply@w3.org>
- Date: Mon, 02 Jun 2025 13:10:45 +0000
- To: public-css-archive@w3.org
zcorpan has just created a new issue for https://github.com/w3c/csswg-drafts: == [cssom-view] scrollIntoView container spec unclear == https://github.com/w3c/csswg-drafts/pull/11673 added `container` dictionary member to `scrollIntoView(options)`. From https://github.com/w3c/csswg-drafts/issues/9452 it seems there was discussion about supporting specifying a particular element directly, but then decided to only support the strings "nearest" and "all". However, the spec seems to have artifacts of both. https://drafts.csswg.org/cssom-view/#dictdef-scrollintoviewoptions > If the [container](https://drafts.csswg.org/cssom-view/#dom-scrollintoviewoptions-container) dictionary member of options, If the container is what? > set container to this element. What does "this element" mean? https://drafts.csswg.org/cssom-view/#scroll-a-target-into-view > and an optional containing [Element](https://dom.spec.whatwg.org/#concept-attribute-element) to stop scrolling after reaching container > If container is not null and scrolling box is a [shadow-including inclusive ancestor](https://dom.spec.whatwg.org/#concept-shadow-including-inclusive-ancestor) of container, abort the rest of these steps. What if the nearest scrolling box is a viewport? cc @flackr @tabatkins Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12260 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Monday, 2 June 2025 13:10:46 UTC