-
Notifications
You must be signed in to change notification settings - Fork 668
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[css-scroll-snap-2] Should scroll-start-target specify alignment? #9012
Comments
I think we should consider a more generic mechanism for all operations which attempt to scroll a particular fragment into view. E.g. similar to how scroll-behavior sets the default behavior (smooth or instant, see example) and can be overridden by the scrollintoview behavior. When there is a specified So putting all of this together, I think this might be something like, Where this specifies the alignment to be used for scrolling operations targeting the element (scroll-start, anchor navigation, etc). And then specifying a non-none value for |
I think a generic mechanism sounds like a good idea. And having Could you elaborate a little on the proposal for |
There is a proposal[1] for a more generic element-level scroll alignment indicator which would apply to scroll-start-targets and would mean that scroll-snap-align dictates the alignment of scroll-start-targets. It is likely that that work will be realized later than scroll-start-target. This patch allows scroll-snap-align directly specify the alignment of scroll-start-targets; this behavior is closer to the end-goal of that proposal. [1]w3c/csswg-drafts#9012 (comment) Bug: 1439807 Change-Id: Id6ff1937a806d00c3ac0326d53d379d1c39b5897
The Technically we don't need that if we still have scroll-snap-align as a separate property but it's a bit awkward to have two properties attempting to determine the |
There is a proposal[1] for a more generic element-level scroll alignment indicator which would apply to scroll-start-targets and would mean that scroll-snap-align dictates the alignment of scroll-start-targets. It is likely that that work will be realized later than scroll-start-target. This patch allows scroll-snap-align directly specify the alignment of scroll-start-targets; this behavior is closer to the end-goal of that proposal. [1]w3c/csswg-drafts#9012 (comment) Bug: 1439807 Change-Id: Id6ff1937a806d00c3ac0326d53d379d1c39b5897 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4906566 Commit-Queue: David Awogbemila <[email protected]> Reviewed-by: Steve Kobes <[email protected]> Cr-Commit-Position: refs/heads/main@{#1214872}
There is a proposal[1] for a more generic element-level scroll alignment indicator which would apply to scroll-start-targets and would mean that scroll-snap-align dictates the alignment of scroll-start-targets. It is likely that that work will be realized later than scroll-start-target. This patch allows scroll-snap-align directly specify the alignment of scroll-start-targets; this behavior is closer to the end-goal of that proposal. [1]w3c/csswg-drafts#9012 (comment) Bug: 1439807 Change-Id: Id6ff1937a806d00c3ac0326d53d379d1c39b5897 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4906566 Commit-Queue: David Awogbemila <[email protected]> Reviewed-by: Steve Kobes <[email protected]> Cr-Commit-Position: refs/heads/main@{#1214872}
There is a proposal[1] for a more generic element-level scroll alignment indicator which would apply to scroll-start-targets and would mean that scroll-snap-align dictates the alignment of scroll-start-targets. It is likely that that work will be realized later than scroll-start-target. This patch allows scroll-snap-align directly specify the alignment of scroll-start-targets; this behavior is closer to the end-goal of that proposal. [1]w3c/csswg-drafts#9012 (comment) Bug: 1439807 Change-Id: Id6ff1937a806d00c3ac0326d53d379d1c39b5897 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4906566 Commit-Queue: David Awogbemila <[email protected]> Reviewed-by: Steve Kobes <[email protected]> Cr-Commit-Position: refs/heads/main@{#1214872}
…d align with scroll-snap-align, a=testonly Automatic update from web-platform-tests [scroll-start] scroll-start-target should align with scroll-snap-align There is a proposal[1] for a more generic element-level scroll alignment indicator which would apply to scroll-start-targets and would mean that scroll-snap-align dictates the alignment of scroll-start-targets. It is likely that that work will be realized later than scroll-start-target. This patch allows scroll-snap-align directly specify the alignment of scroll-start-targets; this behavior is closer to the end-goal of that proposal. [1]w3c/csswg-drafts#9012 (comment) Bug: 1439807 Change-Id: Id6ff1937a806d00c3ac0326d53d379d1c39b5897 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4906566 Commit-Queue: David Awogbemila <[email protected]> Reviewed-by: Steve Kobes <[email protected]> Cr-Commit-Position: refs/heads/main@{#1214872} -- wpt-commits: ae3d6e3e0e7121408c173e158fb9eab53ec29b88 wpt-pr: 42293
…d align with scroll-snap-align, a=testonly Automatic update from web-platform-tests [scroll-start] scroll-start-target should align with scroll-snap-align There is a proposal[1] for a more generic element-level scroll alignment indicator which would apply to scroll-start-targets and would mean that scroll-snap-align dictates the alignment of scroll-start-targets. It is likely that that work will be realized later than scroll-start-target. This patch allows scroll-snap-align directly specify the alignment of scroll-start-targets; this behavior is closer to the end-goal of that proposal. [1]w3c/csswg-drafts#9012 (comment) Bug: 1439807 Change-Id: Id6ff1937a806d00c3ac0326d53d379d1c39b5897 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4906566 Commit-Queue: David Awogbemila <[email protected]> Reviewed-by: Steve Kobes <[email protected]> Cr-Commit-Position: refs/heads/main@{#1214872} -- wpt-commits: ae3d6e3e0e7121408c173e158fb9eab53ec29b88 wpt-pr: 42293
…d align with scroll-snap-align, a=testonly Automatic update from web-platform-tests [scroll-start] scroll-start-target should align with scroll-snap-align There is a proposal[1] for a more generic element-level scroll alignment indicator which would apply to scroll-start-targets and would mean that scroll-snap-align dictates the alignment of scroll-start-targets. It is likely that that work will be realized later than scroll-start-target. This patch allows scroll-snap-align directly specify the alignment of scroll-start-targets; this behavior is closer to the end-goal of that proposal. [1]w3c/csswg-drafts#9012 (comment) Bug: 1439807 Change-Id: Id6ff1937a806d00c3ac0326d53d379d1c39b5897 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4906566 Commit-Queue: David Awogbemila <awogbemilachromium.org> Reviewed-by: Steve Kobes <skobeschromium.org> Cr-Commit-Position: refs/heads/main{#1214872} -- wpt-commits: ae3d6e3e0e7121408c173e158fb9eab53ec29b88 wpt-pr: 42293 UltraBlame original commit: 637542733650a3aab5435d804077aa3d7c50cafb
…d align with scroll-snap-align, a=testonly Automatic update from web-platform-tests [scroll-start] scroll-start-target should align with scroll-snap-align There is a proposal[1] for a more generic element-level scroll alignment indicator which would apply to scroll-start-targets and would mean that scroll-snap-align dictates the alignment of scroll-start-targets. It is likely that that work will be realized later than scroll-start-target. This patch allows scroll-snap-align directly specify the alignment of scroll-start-targets; this behavior is closer to the end-goal of that proposal. [1]w3c/csswg-drafts#9012 (comment) Bug: 1439807 Change-Id: Id6ff1937a806d00c3ac0326d53d379d1c39b5897 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4906566 Commit-Queue: David Awogbemila <awogbemilachromium.org> Reviewed-by: Steve Kobes <skobeschromium.org> Cr-Commit-Position: refs/heads/main{#1214872} -- wpt-commits: ae3d6e3e0e7121408c173e158fb9eab53ec29b88 wpt-pr: 42293 UltraBlame original commit: 637542733650a3aab5435d804077aa3d7c50cafb
…d align with scroll-snap-align, a=testonly Automatic update from web-platform-tests [scroll-start] scroll-start-target should align with scroll-snap-align There is a proposal[1] for a more generic element-level scroll alignment indicator which would apply to scroll-start-targets and would mean that scroll-snap-align dictates the alignment of scroll-start-targets. It is likely that that work will be realized later than scroll-start-target. This patch allows scroll-snap-align directly specify the alignment of scroll-start-targets; this behavior is closer to the end-goal of that proposal. [1]w3c/csswg-drafts#9012 (comment) Bug: 1439807 Change-Id: Id6ff1937a806d00c3ac0326d53d379d1c39b5897 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4906566 Commit-Queue: David Awogbemila <awogbemilachromium.org> Reviewed-by: Steve Kobes <skobeschromium.org> Cr-Commit-Position: refs/heads/main{#1214872} -- wpt-commits: ae3d6e3e0e7121408c173e158fb9eab53ec29b88 wpt-pr: 42293 UltraBlame original commit: 637542733650a3aab5435d804077aa3d7c50cafb
The scroll-snap-2 spec lets authors specify "none" or "auto" for scroll-start-target.
Would it be more useful to allow authors to specify how scrollers should align to these targets?
Perhaps keyword options similar to scrollintoview or scroll-snap-align would make sense.
The text was updated successfully, but these errors were encountered: