Re: [csswg-drafts] [css-scroll-snap-1] Alignment when scrolling to an element with scroll-snap-align (#9576)

The CSS Working Group just discussed `[css-scroll-snap-1] Alignment when scrolling to an element with scroll-snap-align`, and agreed to the following:

* `RESOLVED: add an auto value to scroll-into-view options`
* `RESOLVED: using auto in scroll-into-fragment and scroll-marker activation`
* `RESOLVED: respecting the scroll snap align when performing scroll-into-view with auto is mandatory not optional`

<details><summary>The full IRC log of that discussion</summary>
&lt;emilio> Seems fine, thanks TabAtkins :)<br>
&lt;ydaniv> DavidA: this is about the scroll into view functions which sets the alignment of the thing you scroll into<br>
&lt;ydaniv> ... currently in the spec if the thing you're scrolling to has a scroll-snap-align on it, if the container isn't a scroll snap container, it will align<br>
&lt;ydaniv> ... when there was already an alignment value it currently sets the [missed]<br>
&lt;ydaniv> ... 2 things we want to propose<br>
&lt;ydaniv> ... 1. part of scroll snap spec indicates the value is optional, so different, so make it auto that we can detect that<br>
&lt;ydaniv> flackr: specifically detect that an author specified an alignment and respect that<br>
&lt;ydaniv> DavidA: so the default is auto that we can look at specified values on how to align<br>
&lt;ydaniv> flackr: and we want to use auto for fragment navigation, currently it's nearest<br>
&lt;ydaniv> DavidA: scroll marker spec, we want this place as well to say auto as default<br>
&lt;ydaniv> flackr: last thing to raise, this is similar to what we're already doing with scroll-behavior<br>
&lt;ydaniv> ... this is doing the same thing for alignment<br>
&lt;ydaniv> astearns: sounds like flackr and DavidA are in agreement here<br>
&lt;ydaniv> ... other concerns? suggestions?<br>
&lt;smfr> seems fine<br>
&lt;ydaniv> astearns: are we taking 3 resolutions?<br>
&lt;ydaniv> flackr: we can make this as 3<br>
&lt;ydaniv> PROPOSED RESOLUTION: add an auto value to scroll-into-view options<br>
&lt;ydaniv> astearns: objections?<br>
&lt;ydaniv> RESOLVED: add an auto value to scroll-into-view options<br>
&lt;ydaniv> PROPOSED RESOLUTION: using auto in scroll-into-fragment and scroll-marker activation<br>
&lt;ydaniv> astearns: obejctions?<br>
&lt;ydaniv> RESOLVED: using auto in scroll-into-fragment and scroll-marker activation<br>
&lt;ydaniv> PROPOSED RESOLUTION: respecting the scroll snap align when performing scroll-into-view with auto is mandatory not optional<br>
&lt;ydaniv> RESOLVED: respecting the scroll snap align when performing scroll-into-view with auto is mandatory not optional<br>
</details>


-- 
GitHub Notification of comment by css-meeting-bot
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9576#issuecomment-4390111186 using your GitHub account


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

Received on Wednesday, 6 May 2026 16:33:58 UTC