diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 09:22:09 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 09:22:09 +0000 |
commit | 43a97878ce14b72f0981164f87f2e35e14151312 (patch) | |
tree | 620249daf56c0258faa40cbdcf9cfba06de2a846 /testing/web-platform/tests/scroll-animations/css/scroll-timeline-shorthand.tentative.html | |
parent | Initial commit. (diff) | |
download | firefox-43a97878ce14b72f0981164f87f2e35e14151312.tar.xz firefox-43a97878ce14b72f0981164f87f2e35e14151312.zip |
Adding upstream version 110.0.1.upstream/110.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/scroll-animations/css/scroll-timeline-shorthand.tentative.html')
-rw-r--r-- | testing/web-platform/tests/scroll-animations/css/scroll-timeline-shorthand.tentative.html | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/testing/web-platform/tests/scroll-animations/css/scroll-timeline-shorthand.tentative.html b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-shorthand.tentative.html new file mode 100644 index 0000000000..b340ff34ff --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-shorthand.tentative.html @@ -0,0 +1,41 @@ +<!DOCTYPE html> +<link rel="help" href="https://github.com/w3c/csswg-drafts/issues/6674"> +<link rel="help" href="https://drafts.csswg.org/scroll-animations-1/rewrite#scroll-timeline-axis"> +<script src="/resources/testharness.js"></script> +<script src="/resources/testharnessreport.js"></script> +<script src="/css/support/computed-testcommon.js"></script> +<script src="/css/support/parsing-testcommon.js"></script> +<script src="/css/support/shorthand-testcommon.js"></script> +<div id="target"></div> +<script> +test_valid_value('scroll-timeline', 'block none', 'block'); +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'); +test_valid_value('scroll-timeline', 'inline'); + +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', +{ + 'scroll-timeline-axis': 'vertical', + 'scroll-timeline-name': 'abc', +}); +test_shorthand_value('scroll-timeline', 'horizontal inline', +{ + 'scroll-timeline-axis': 'horizontal', + 'scroll-timeline-name': 'inline', +}); +</script> |