Skip to content

[scroll-animations-1] Add Element-based offset (#4337) #5124

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

Merged
merged 3 commits into from
Jun 1, 2020

Conversation

majido
Copy link
Contributor

@majido majido commented May 27, 2020

Add basic definition for Element-based offsets

Major changes:

  • Introduce concept of "scroll timeline offset" that can be container-based (existing concept) and element-based (new concept).
  • Add IDL for the new offset type and use it.
  • Define the process for each offset type to be resolved into an effective scroll offset.
  • Update current time calculation to resolve offsets and use the effective values.
  • Add basic diagram to show the behavior visually for a simple example

Minor changes:

  • Rewrap lines to fit in 80 chars
  • Trim end-of-line whitespace
  • Clarify some definitions

TODO (as follow ups):

  • Define threshold for element-based offset.
  • Add css syntax for element-based offsets.
  • Add more examples

Introduce concept of "scroll timeline offset" that can be
container-based (existing type) and element-based (new type)

Add IDL for the new offset type and use it.

Define the process for each offset type to be resolved into
an effective scroll offset.

Update current time calculation to resolve offsets and use
the effective values.

Minor changes:
 - reflow lines to fit in 80 chars
 - Clarify some definitions

TODO (as follow ups):
 - define threshold for element-based offset
 - Add a diagram to visualize the element-based computation
 - Add css syntax for element-based offsets
@majido majido requested a review from ogerchikov May 27, 2020 21:09
@majido majido added the scroll-animations-1 Current Work label May 27, 2020
@majido
Copy link
Contributor Author

majido commented May 27, 2020

@flackr FYI in case you have any comments.

chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Jun 1, 2020
For these cases we cannot calculate a meaningful scroll offset:

1. When target is not a descendant of timeline's source.
2. When target has no layout box.

There current draft spec [1] asks for these situations to result into
unresolved scroll offset which keeps timeline inactive.

[1] w3c/csswg-drafts#5124

TEST: wpt/scroll-animations/element-based-offset-unresolved.html
BUG: 1023375

Change-Id: Iec616444dda8dcdd6649e250aa993b439c00885e
@majido
Copy link
Contributor Author

majido commented Jun 1, 2020

Addressed nits in latest commit be7fcd7

@majido majido merged commit 5a49df2 into w3c:master Jun 1, 2020
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Jun 1, 2020
For these cases we cannot calculate a meaningful scroll offset:

1. When target is not a descendant of timeline's source.
2. When target has no layout box.

The current draft spec [1] asks for these situations to result into
unresolved scroll offset which keeps timeline inactive.

[1] w3c/csswg-drafts#5124

TEST: wpt/scroll-animations/element-based-offset-unresolved.html
BUG: 1023375

Change-Id: Iec616444dda8dcdd6649e250aa993b439c00885e
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Jun 2, 2020
For these cases we cannot calculate a meaningful scroll offset:

1. When target is not a descendant of timeline's source.
2. When target has no layout box.

The current draft spec [1] asks for these situations to result into
unresolved scroll offset which keeps timeline inactive.

[1] w3c/csswg-drafts#5124

TEST: wpt/scroll-animations/element-based-offset-unresolved.html
BUG: 1023375

Change-Id: Iec616444dda8dcdd6649e250aa993b439c00885e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2222884
Reviewed-by: Majid Valipour <majidvp@chromium.org>
Reviewed-by: Yi Gu <yigu@chromium.org>
Commit-Queue: Majid Valipour <majidvp@chromium.org>
Cr-Commit-Position: refs/heads/master@{#774144}
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Jun 2, 2020
For these cases we cannot calculate a meaningful scroll offset:

1. When target is not a descendant of timeline's source.
2. When target has no layout box.

The current draft spec [1] asks for these situations to result into
unresolved scroll offset which keeps timeline inactive.

[1] w3c/csswg-drafts#5124

TEST: wpt/scroll-animations/element-based-offset-unresolved.html
BUG: 1023375

Change-Id: Iec616444dda8dcdd6649e250aa993b439c00885e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2222884
Reviewed-by: Majid Valipour <majidvp@chromium.org>
Reviewed-by: Yi Gu <yigu@chromium.org>
Commit-Queue: Majid Valipour <majidvp@chromium.org>
Cr-Commit-Position: refs/heads/master@{#774144}
pull bot pushed a commit to Yannic/chromium that referenced this pull request Jun 2, 2020
For these cases we cannot calculate a meaningful scroll offset:

1. When target is not a descendant of timeline's source.
2. When target has no layout box.

The current draft spec [1] asks for these situations to result into
unresolved scroll offset which keeps timeline inactive.


[1] w3c/csswg-drafts#5124

TEST: wpt/scroll-animations/element-based-offset-unresolved.html
BUG: 1023375

Change-Id: Iec616444dda8dcdd6649e250aa993b439c00885e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2222884
Reviewed-by: Majid Valipour <majidvp@chromium.org>
Reviewed-by: Yi Gu <yigu@chromium.org>
Commit-Queue: Majid Valipour <majidvp@chromium.org>
Cr-Commit-Position: refs/heads/master@{#774144}
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request Jun 8, 2020
…olvable cases, a=testonly

Automatic update from web-platform-tests
[scroll-timeline] Correctly handle unresolvable cases

For these cases we cannot calculate a meaningful scroll offset:

1. When target is not a descendant of timeline's source.
2. When target has no layout box.

The current draft spec [1] asks for these situations to result into
unresolved scroll offset which keeps timeline inactive.

[1] w3c/csswg-drafts#5124

TEST: wpt/scroll-animations/element-based-offset-unresolved.html
BUG: 1023375

Change-Id: Iec616444dda8dcdd6649e250aa993b439c00885e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2222884
Reviewed-by: Majid Valipour <majidvp@chromium.org>
Reviewed-by: Yi Gu <yigu@chromium.org>
Commit-Queue: Majid Valipour <majidvp@chromium.org>
Cr-Commit-Position: refs/heads/master@{#774144}

--

wpt-commits: 52575c9d7c3139cab33780e114b5cf9237a47157
wpt-pr: 23889
xeonchen pushed a commit to xeonchen/gecko that referenced this pull request Jun 8, 2020
…olvable cases, a=testonly

Automatic update from web-platform-tests
[scroll-timeline] Correctly handle unresolvable cases

For these cases we cannot calculate a meaningful scroll offset:

1. When target is not a descendant of timeline's source.
2. When target has no layout box.

The current draft spec [1] asks for these situations to result into
unresolved scroll offset which keeps timeline inactive.

[1] w3c/csswg-drafts#5124

TEST: wpt/scroll-animations/element-based-offset-unresolved.html
BUG: 1023375

Change-Id: Iec616444dda8dcdd6649e250aa993b439c00885e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2222884
Reviewed-by: Majid Valipour <majidvp@chromium.org>
Reviewed-by: Yi Gu <yigu@chromium.org>
Commit-Queue: Majid Valipour <majidvp@chromium.org>
Cr-Commit-Position: refs/heads/master@{#774144}

--

wpt-commits: 52575c9d7c3139cab33780e114b5cf9237a47157
wpt-pr: 23889
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request Jun 9, 2020
…olvable cases, a=testonly

Automatic update from web-platform-tests
[scroll-timeline] Correctly handle unresolvable cases

For these cases we cannot calculate a meaningful scroll offset:

1. When target is not a descendant of timeline's source.
2. When target has no layout box.

The current draft spec [1] asks for these situations to result into
unresolved scroll offset which keeps timeline inactive.

[1] w3c/csswg-drafts#5124

TEST: wpt/scroll-animations/element-based-offset-unresolved.html
BUG: 1023375

Change-Id: Iec616444dda8dcdd6649e250aa993b439c00885e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2222884
Reviewed-by: Majid Valipour <majidvp@chromium.org>
Reviewed-by: Yi Gu <yigu@chromium.org>
Commit-Queue: Majid Valipour <majidvp@chromium.org>
Cr-Commit-Position: refs/heads/master@{#774144}

--

wpt-commits: 52575c9d7c3139cab33780e114b5cf9237a47157
wpt-pr: 23889

Differential Revision: https://phabricator.services.mozilla.com/D78787
xeonchen pushed a commit to xeonchen/gecko that referenced this pull request Jun 9, 2020
…olvable cases, a=testonly

Automatic update from web-platform-tests
[scroll-timeline] Correctly handle unresolvable cases

For these cases we cannot calculate a meaningful scroll offset:

1. When target is not a descendant of timeline's source.
2. When target has no layout box.

The current draft spec [1] asks for these situations to result into
unresolved scroll offset which keeps timeline inactive.

[1] w3c/csswg-drafts#5124

TEST: wpt/scroll-animations/element-based-offset-unresolved.html
BUG: 1023375

Change-Id: Iec616444dda8dcdd6649e250aa993b439c00885e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2222884
Reviewed-by: Majid Valipour <majidvp@chromium.org>
Reviewed-by: Yi Gu <yigu@chromium.org>
Commit-Queue: Majid Valipour <majidvp@chromium.org>
Cr-Commit-Position: refs/heads/master@{#774144}

--

wpt-commits: 52575c9d7c3139cab33780e114b5cf9237a47157
wpt-pr: 23889

Differential Revision: https://phabricator.services.mozilla.com/D78787
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request Jun 10, 2020
…olvable cases, a=testonly

Automatic update from web-platform-tests
[scroll-timeline] Correctly handle unresolvable cases

For these cases we cannot calculate a meaningful scroll offset:

1. When target is not a descendant of timeline's source.
2. When target has no layout box.

The current draft spec [1] asks for these situations to result into
unresolved scroll offset which keeps timeline inactive.

[1] w3c/csswg-drafts#5124

TEST: wpt/scroll-animations/element-based-offset-unresolved.html
BUG: 1023375

Change-Id: Iec616444dda8dcdd6649e250aa993b439c00885e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2222884
Reviewed-by: Majid Valipour <majidvp@chromium.org>
Reviewed-by: Yi Gu <yigu@chromium.org>
Commit-Queue: Majid Valipour <majidvp@chromium.org>
Cr-Commit-Position: refs/heads/master@{#774144}

--

wpt-commits: 52575c9d7c3139cab33780e114b5cf9237a47157
wpt-pr: 23889

Differential Revision: https://phabricator.services.mozilla.com/D78787
xeonchen pushed a commit to xeonchen/gecko that referenced this pull request Jun 10, 2020
…olvable cases, a=testonly

Automatic update from web-platform-tests
[scroll-timeline] Correctly handle unresolvable cases

For these cases we cannot calculate a meaningful scroll offset:

1. When target is not a descendant of timeline's source.
2. When target has no layout box.

The current draft spec [1] asks for these situations to result into
unresolved scroll offset which keeps timeline inactive.

[1] w3c/csswg-drafts#5124

TEST: wpt/scroll-animations/element-based-offset-unresolved.html
BUG: 1023375

Change-Id: Iec616444dda8dcdd6649e250aa993b439c00885e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2222884
Reviewed-by: Majid Valipour <majidvp@chromium.org>
Reviewed-by: Yi Gu <yigu@chromium.org>
Commit-Queue: Majid Valipour <majidvp@chromium.org>
Cr-Commit-Position: refs/heads/master@{#774144}

--

wpt-commits: 52575c9d7c3139cab33780e114b5cf9237a47157
wpt-pr: 23889

Differential Revision: https://phabricator.services.mozilla.com/D78787
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified-and-comments-removed that referenced this pull request Jun 11, 2020
…olvable cases, a=testonly

Automatic update from web-platform-tests
[scroll-timeline] Correctly handle unresolvable cases

For these cases we cannot calculate a meaningful scroll offset:

1. When target is not a descendant of timeline's source.
2. When target has no layout box.

The current draft spec [1] asks for these situations to result into
unresolved scroll offset which keeps timeline inactive.

[1] w3c/csswg-drafts#5124

TEST: wpt/scroll-animations/element-based-offset-unresolved.html
BUG: 1023375

Change-Id: Iec616444dda8dcdd6649e250aa993b439c00885e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2222884
Reviewed-by: Majid Valipour <majidvpchromium.org>
Reviewed-by: Yi Gu <yiguchromium.org>
Commit-Queue: Majid Valipour <majidvpchromium.org>
Cr-Commit-Position: refs/heads/master{#774144}

--

wpt-commits: 52575c9d7c3139cab33780e114b5cf9237a47157
wpt-pr: 23889

UltraBlame original commit: 8d5970242b1ef3f361256b225805d097138569f8
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified-and-comments-removed that referenced this pull request Jun 11, 2020
…olvable cases, a=testonly

Automatic update from web-platform-tests
[scroll-timeline] Correctly handle unresolvable cases

For these cases we cannot calculate a meaningful scroll offset:

1. When target is not a descendant of timeline's source.
2. When target has no layout box.

The current draft spec [1] asks for these situations to result into
unresolved scroll offset which keeps timeline inactive.

[1] w3c/csswg-drafts#5124

TEST: wpt/scroll-animations/element-based-offset-unresolved.html
BUG: 1023375

Change-Id: Iec616444dda8dcdd6649e250aa993b439c00885e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2222884
Reviewed-by: Majid Valipour <majidvpchromium.org>
Reviewed-by: Yi Gu <yiguchromium.org>
Commit-Queue: Majid Valipour <majidvpchromium.org>
Cr-Commit-Position: refs/heads/master{#774144}

--

wpt-commits: 52575c9d7c3139cab33780e114b5cf9237a47157
wpt-pr: 23889

Differential Revision: https://phabricator.services.mozilla.com/D78787

UltraBlame original commit: 9d70834b865c54e1fbd354acd7a040d07899cfbb
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified-and-comments-removed that referenced this pull request Jun 11, 2020
…olvable cases, a=testonly

Automatic update from web-platform-tests
[scroll-timeline] Correctly handle unresolvable cases

For these cases we cannot calculate a meaningful scroll offset:

1. When target is not a descendant of timeline's source.
2. When target has no layout box.

The current draft spec [1] asks for these situations to result into
unresolved scroll offset which keeps timeline inactive.

[1] w3c/csswg-drafts#5124

TEST: wpt/scroll-animations/element-based-offset-unresolved.html
BUG: 1023375

Change-Id: Iec616444dda8dcdd6649e250aa993b439c00885e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2222884
Reviewed-by: Majid Valipour <majidvpchromium.org>
Reviewed-by: Yi Gu <yiguchromium.org>
Commit-Queue: Majid Valipour <majidvpchromium.org>
Cr-Commit-Position: refs/heads/master{#774144}

--

wpt-commits: 52575c9d7c3139cab33780e114b5cf9237a47157
wpt-pr: 23889

Differential Revision: https://phabricator.services.mozilla.com/D78787

UltraBlame original commit: 7e3d78d04d1df89a7be533236cce0137b205cd6c
gecko-dev-updater pushed a commit to marco-c/gecko-dev-comments-removed that referenced this pull request Jun 12, 2020
…olvable cases, a=testonly

Automatic update from web-platform-tests
[scroll-timeline] Correctly handle unresolvable cases

For these cases we cannot calculate a meaningful scroll offset:

1. When target is not a descendant of timeline's source.
2. When target has no layout box.

The current draft spec [1] asks for these situations to result into
unresolved scroll offset which keeps timeline inactive.

[1] w3c/csswg-drafts#5124

TEST: wpt/scroll-animations/element-based-offset-unresolved.html
BUG: 1023375

Change-Id: Iec616444dda8dcdd6649e250aa993b439c00885e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2222884
Reviewed-by: Majid Valipour <majidvpchromium.org>
Reviewed-by: Yi Gu <yiguchromium.org>
Commit-Queue: Majid Valipour <majidvpchromium.org>
Cr-Commit-Position: refs/heads/master{#774144}

--

wpt-commits: 52575c9d7c3139cab33780e114b5cf9237a47157
wpt-pr: 23889

UltraBlame original commit: 8d5970242b1ef3f361256b225805d097138569f8
gecko-dev-updater pushed a commit to marco-c/gecko-dev-comments-removed that referenced this pull request Jun 12, 2020
…olvable cases, a=testonly

Automatic update from web-platform-tests
[scroll-timeline] Correctly handle unresolvable cases

For these cases we cannot calculate a meaningful scroll offset:

1. When target is not a descendant of timeline's source.
2. When target has no layout box.

The current draft spec [1] asks for these situations to result into
unresolved scroll offset which keeps timeline inactive.

[1] w3c/csswg-drafts#5124

TEST: wpt/scroll-animations/element-based-offset-unresolved.html
BUG: 1023375

Change-Id: Iec616444dda8dcdd6649e250aa993b439c00885e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2222884
Reviewed-by: Majid Valipour <majidvpchromium.org>
Reviewed-by: Yi Gu <yiguchromium.org>
Commit-Queue: Majid Valipour <majidvpchromium.org>
Cr-Commit-Position: refs/heads/master{#774144}

--

wpt-commits: 52575c9d7c3139cab33780e114b5cf9237a47157
wpt-pr: 23889

Differential Revision: https://phabricator.services.mozilla.com/D78787

UltraBlame original commit: 9d70834b865c54e1fbd354acd7a040d07899cfbb
gecko-dev-updater pushed a commit to marco-c/gecko-dev-comments-removed that referenced this pull request Jun 12, 2020
…olvable cases, a=testonly

Automatic update from web-platform-tests
[scroll-timeline] Correctly handle unresolvable cases

For these cases we cannot calculate a meaningful scroll offset:

1. When target is not a descendant of timeline's source.
2. When target has no layout box.

The current draft spec [1] asks for these situations to result into
unresolved scroll offset which keeps timeline inactive.

[1] w3c/csswg-drafts#5124

TEST: wpt/scroll-animations/element-based-offset-unresolved.html
BUG: 1023375

Change-Id: Iec616444dda8dcdd6649e250aa993b439c00885e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2222884
Reviewed-by: Majid Valipour <majidvpchromium.org>
Reviewed-by: Yi Gu <yiguchromium.org>
Commit-Queue: Majid Valipour <majidvpchromium.org>
Cr-Commit-Position: refs/heads/master{#774144}

--

wpt-commits: 52575c9d7c3139cab33780e114b5cf9237a47157
wpt-pr: 23889

Differential Revision: https://phabricator.services.mozilla.com/D78787

UltraBlame original commit: 7e3d78d04d1df89a7be533236cce0137b205cd6c
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified that referenced this pull request Jun 12, 2020
…olvable cases, a=testonly

Automatic update from web-platform-tests
[scroll-timeline] Correctly handle unresolvable cases

For these cases we cannot calculate a meaningful scroll offset:

1. When target is not a descendant of timeline's source.
2. When target has no layout box.

The current draft spec [1] asks for these situations to result into
unresolved scroll offset which keeps timeline inactive.

[1] w3c/csswg-drafts#5124

TEST: wpt/scroll-animations/element-based-offset-unresolved.html
BUG: 1023375

Change-Id: Iec616444dda8dcdd6649e250aa993b439c00885e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2222884
Reviewed-by: Majid Valipour <majidvpchromium.org>
Reviewed-by: Yi Gu <yiguchromium.org>
Commit-Queue: Majid Valipour <majidvpchromium.org>
Cr-Commit-Position: refs/heads/master{#774144}

--

wpt-commits: 52575c9d7c3139cab33780e114b5cf9237a47157
wpt-pr: 23889

UltraBlame original commit: 8d5970242b1ef3f361256b225805d097138569f8
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified that referenced this pull request Jun 12, 2020
…olvable cases, a=testonly

Automatic update from web-platform-tests
[scroll-timeline] Correctly handle unresolvable cases

For these cases we cannot calculate a meaningful scroll offset:

1. When target is not a descendant of timeline's source.
2. When target has no layout box.

The current draft spec [1] asks for these situations to result into
unresolved scroll offset which keeps timeline inactive.

[1] w3c/csswg-drafts#5124

TEST: wpt/scroll-animations/element-based-offset-unresolved.html
BUG: 1023375

Change-Id: Iec616444dda8dcdd6649e250aa993b439c00885e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2222884
Reviewed-by: Majid Valipour <majidvpchromium.org>
Reviewed-by: Yi Gu <yiguchromium.org>
Commit-Queue: Majid Valipour <majidvpchromium.org>
Cr-Commit-Position: refs/heads/master{#774144}

--

wpt-commits: 52575c9d7c3139cab33780e114b5cf9237a47157
wpt-pr: 23889

Differential Revision: https://phabricator.services.mozilla.com/D78787

UltraBlame original commit: 9d70834b865c54e1fbd354acd7a040d07899cfbb
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified that referenced this pull request Jun 12, 2020
…olvable cases, a=testonly

Automatic update from web-platform-tests
[scroll-timeline] Correctly handle unresolvable cases

For these cases we cannot calculate a meaningful scroll offset:

1. When target is not a descendant of timeline's source.
2. When target has no layout box.

The current draft spec [1] asks for these situations to result into
unresolved scroll offset which keeps timeline inactive.

[1] w3c/csswg-drafts#5124

TEST: wpt/scroll-animations/element-based-offset-unresolved.html
BUG: 1023375

Change-Id: Iec616444dda8dcdd6649e250aa993b439c00885e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2222884
Reviewed-by: Majid Valipour <majidvpchromium.org>
Reviewed-by: Yi Gu <yiguchromium.org>
Commit-Queue: Majid Valipour <majidvpchromium.org>
Cr-Commit-Position: refs/heads/master{#774144}

--

wpt-commits: 52575c9d7c3139cab33780e114b5cf9237a47157
wpt-pr: 23889

Differential Revision: https://phabricator.services.mozilla.com/D78787

UltraBlame original commit: 7e3d78d04d1df89a7be533236cce0137b205cd6c
DOMString start = "auto";
DOMString end = "auto";
(DOMString or ElementBasedOffset) start = "auto";
(DOMString or ElementBasedOffset) end = "auto";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@majido Should this patch have updated the types of the start and end members of the ScrollTimeline interface too?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed! And thanks for the patch to fix it.

bhearsum pushed a commit to mozilla-releng/staging-firefox that referenced this pull request May 1, 2025
…olvable cases, a=testonly

Automatic update from web-platform-tests
[scroll-timeline] Correctly handle unresolvable cases

For these cases we cannot calculate a meaningful scroll offset:

1. When target is not a descendant of timeline's source.
2. When target has no layout box.

The current draft spec [1] asks for these situations to result into
unresolved scroll offset which keeps timeline inactive.

[1] w3c/csswg-drafts#5124

TEST: wpt/scroll-animations/element-based-offset-unresolved.html
BUG: 1023375

Change-Id: Iec616444dda8dcdd6649e250aa993b439c00885e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2222884
Reviewed-by: Majid Valipour <majidvp@chromium.org>
Reviewed-by: Yi Gu <yigu@chromium.org>
Commit-Queue: Majid Valipour <majidvp@chromium.org>
Cr-Commit-Position: refs/heads/master@{#774144}

--

wpt-commits: 52575c9d7c3139cab33780e114b5cf9237a47157
wpt-pr: 23889
bhearsum pushed a commit to mozilla-releng/staging-firefox that referenced this pull request May 1, 2025
…olvable cases, a=testonly

Automatic update from web-platform-tests
[scroll-timeline] Correctly handle unresolvable cases

For these cases we cannot calculate a meaningful scroll offset:

1. When target is not a descendant of timeline's source.
2. When target has no layout box.

The current draft spec [1] asks for these situations to result into
unresolved scroll offset which keeps timeline inactive.

[1] w3c/csswg-drafts#5124

TEST: wpt/scroll-animations/element-based-offset-unresolved.html
BUG: 1023375

Change-Id: Iec616444dda8dcdd6649e250aa993b439c00885e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2222884
Reviewed-by: Majid Valipour <majidvp@chromium.org>
Reviewed-by: Yi Gu <yigu@chromium.org>
Commit-Queue: Majid Valipour <majidvp@chromium.org>
Cr-Commit-Position: refs/heads/master@{#774144}

--

wpt-commits: 52575c9d7c3139cab33780e114b5cf9237a47157
wpt-pr: 23889

Differential Revision: https://phabricator.services.mozilla.com/D78787
bhearsum pushed a commit to mozilla-releng/staging-firefox that referenced this pull request May 1, 2025
…olvable cases, a=testonly

Automatic update from web-platform-tests
[scroll-timeline] Correctly handle unresolvable cases

For these cases we cannot calculate a meaningful scroll offset:

1. When target is not a descendant of timeline's source.
2. When target has no layout box.

The current draft spec [1] asks for these situations to result into
unresolved scroll offset which keeps timeline inactive.

[1] w3c/csswg-drafts#5124

TEST: wpt/scroll-animations/element-based-offset-unresolved.html
BUG: 1023375

Change-Id: Iec616444dda8dcdd6649e250aa993b439c00885e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2222884
Reviewed-by: Majid Valipour <majidvp@chromium.org>
Reviewed-by: Yi Gu <yigu@chromium.org>
Commit-Queue: Majid Valipour <majidvp@chromium.org>
Cr-Commit-Position: refs/heads/master@{#774144}

--

wpt-commits: 52575c9d7c3139cab33780e114b5cf9237a47157
wpt-pr: 23889

Differential Revision: https://phabricator.services.mozilla.com/D78787
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants