diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:27 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:27 +0000 |
commit | 40a355a42d4a9444dc753c04c6608dade2f06a23 (patch) | |
tree | 871fc667d2de662f171103ce5ec067014ef85e61 /testing/web-platform/tests/css/css-values/calc-size/animation/calc-size-height-interpolation.tentative.html | |
parent | Adding upstream version 124.0.1. (diff) | |
download | firefox-upstream/125.0.1.tar.xz firefox-upstream/125.0.1.zip |
Adding upstream version 125.0.1.upstream/125.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/css/css-values/calc-size/animation/calc-size-height-interpolation.tentative.html')
-rw-r--r-- | testing/web-platform/tests/css/css-values/calc-size/animation/calc-size-height-interpolation.tentative.html | 95 |
1 files changed, 95 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-values/calc-size/animation/calc-size-height-interpolation.tentative.html b/testing/web-platform/tests/css/css-values/calc-size/animation/calc-size-height-interpolation.tentative.html new file mode 100644 index 0000000000..04c44d0904 --- /dev/null +++ b/testing/web-platform/tests/css/css-values/calc-size/animation/calc-size-height-interpolation.tentative.html @@ -0,0 +1,95 @@ +<!DOCTYPE html> +<meta charset="UTF-8"> +<title>height: calc-size() animations</title> +<link rel="help" href="https://drafts.csswg.org/css-values-5/#calc-size"> + +<script src="/resources/testharness.js"></script> +<script src="/resources/testharnessreport.js"></script> +<script src="../../../support/interpolation-testcommon.js"></script> + +<style> +.target { + display: block; +} +.target::before { + display: block; + content: ""; + width: 23px; + height: 100px; +} +</style> + +<body> + +<script> + test_interpolation({ + property: 'height', + from: 'calc-size(auto, size)', + to: 'calc-size(auto, size * 2)', + }, [ + { at: -0.25, expect: '75px' }, + { at: 0, expect: '100px' }, + { at: 0.25, expect: '125px' }, + { at: 0.5, expect: '150px' }, + { at: 0.75, expect: '175px' }, + { at: 1, expect: '200px' }, + { at: 1.25, expect: '225px' }, + ]); + + test_interpolation({ + property: 'height', + from: neutralKeyframe, + to: 'calc-size(auto, size * 2)', + }, [ + { at: -0.25, expect: '75px' }, + { at: 0, expect: '100px' }, + { at: 0.25, expect: '125px' }, + { at: 0.5, expect: '150px' }, + { at: 0.75, expect: '175px' }, + { at: 1, expect: '200px' }, + { at: 1.25, expect: '225px' }, + ]); + + test_interpolation({ + property: 'height', + from: 'calc-size(min-content, 0 * size)', + to: 'calc-size(min-content, size)', + }, [ + { at: -0.25, expect: '0' }, + { at: 0, expect: '0' }, + { at: 0.25, expect: '25px' }, + { at: 0.5, expect: '50px' }, + { at: 0.75, expect: '75px' }, + { at: 1, expect: '100px' }, + { at: 1.25, expect: '125px' }, + ]); + + test_interpolation({ + property: 'height', + from: 'calc-size(min-content, 0px)', + to: 'calc-size(min-content, size)', + }, [ + { at: -0.25, expect: '0' }, + { at: 0, expect: '0' }, + { at: 0.25, expect: '25px' }, + { at: 0.5, expect: '50px' }, + { at: 0.75, expect: '75px' }, + { at: 1, expect: '100px' }, + { at: 1.25, expect: '125px' }, + ]); + + test_interpolation({ + property: 'height', + from: '0', + to: 'calc-size(max-content, size)', + }, [ + { at: -0.25, expect: '0' }, + { at: 0, expect: '0' }, + { at: 0.25, expect: '25px' }, + { at: 0.5, expect: '50px' }, + { at: 0.75, expect: '75px' }, + { at: 1, expect: '100px' }, + { at: 1.25, expect: '125px' }, + ]); + +</script> |