Skip to content

Commit

Permalink
[scroll-animations] Parse scroll-timeline properties
Browse files Browse the repository at this point in the history
Removed tests for scroll-timelinee-name:<string>, since this is not
in the spec.

Bug: 1317765
Change-Id: I8dd93750d837395fe5c253981cf1d6527181e736
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3829517
Commit-Queue: Anders Hartvoll Ruud <andruud@chromium.org>
Reviewed-by: Robert Flack <flackr@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1036831}
  • Loading branch information
andruud authored and chromium-wpt-export-bot committed Aug 18, 2022
1 parent aeab2a9 commit 131b8a5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 15 deletions.
Expand Up @@ -18,14 +18,8 @@
test_computed_value('scroll-timeline-name', 'unset', 'none');
test_computed_value('scroll-timeline-name', 'revert', 'none');
test_computed_value('scroll-timeline-name', 'none');
test_computed_value('scroll-timeline-name', '"test"', ["test", '"test"']);
test_computed_value('scroll-timeline-name', '"none"');
test_computed_value('scroll-timeline-name', '"auto"');
test_computed_value('scroll-timeline-name', '"initial"');
test_computed_value('scroll-timeline-name', '"inherit"');
test_computed_value('scroll-timeline-name', '"unset"');
test_computed_value('scroll-timeline-name', '"revert"');
test_computed_value('scroll-timeline-name', 'test');
test_computed_value('scroll-timeline-name', 'tEst');

test(() => {
let style = getComputedStyle(document.getElementById('target'));
Expand Down
Expand Up @@ -17,14 +17,7 @@
test_valid_value('scroll-timeline-name', 'none');
test_valid_value('scroll-timeline-name', 'abc');
test_valid_value('scroll-timeline-name', ' abc', 'abc');

test_valid_value('scroll-timeline-name', '"test"', ["test", '"test"']);
test_valid_value('scroll-timeline-name', '"none"');
test_valid_value('scroll-timeline-name', '"auto"');
test_valid_value('scroll-timeline-name', '"initial"');
test_valid_value('scroll-timeline-name', '"inherit"');
test_valid_value('scroll-timeline-name', '"unset"');
test_valid_value('scroll-timeline-name', '"revert"');
test_valid_value('scroll-timeline-name', 'aBc');

test_invalid_value('scroll-timeline-name', 'auto');
test_invalid_value('scroll-timeline-name', '10px');
Expand Down
Expand Up @@ -12,6 +12,7 @@
test_valid_value('scroll-timeline', 'none inline', 'inline');
test_valid_value('scroll-timeline', 'horizontal abc');
test_valid_value('scroll-timeline', 'inline abc');
test_valid_value('scroll-timeline', 'inline aBc');
test_valid_value('scroll-timeline', 'vertical none', 'vertical');
test_valid_value('scroll-timeline', 'inline inline');
test_valid_value('scroll-timeline', 'abc');
Expand All @@ -20,10 +21,12 @@
test_invalid_value('scroll-timeline', '');
test_invalid_value('scroll-timeline', 'abc abc');

test_computed_value('scroll-timeline', 'block none', 'block');
test_computed_value('scroll-timeline', 'abc inline', 'inline abc');
test_computed_value('scroll-timeline', 'none vertical', 'vertical');
test_computed_value('scroll-timeline', 'horizontal abc');
test_computed_value('scroll-timeline', 'vertical vertical');
test_computed_value('scroll-timeline', 'abc');

test_shorthand_value('scroll-timeline', 'vertical abc',
{
Expand Down

0 comments on commit 131b8a5

Please sign in to comment.