diff options
Diffstat (limited to 'testing/web-platform/tests/css/css-position/animations/position-interpolation.html')
-rw-r--r-- | testing/web-platform/tests/css/css-position/animations/position-interpolation.html | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-position/animations/position-interpolation.html b/testing/web-platform/tests/css/css-position/animations/position-interpolation.html index a4ad50240a..1a9e7f055b 100644 --- a/testing/web-platform/tests/css/css-position/animations/position-interpolation.html +++ b/testing/web-platform/tests/css/css-position/animations/position-interpolation.html @@ -36,12 +36,41 @@ </body> <script> +// Use default transition-behavior: normal. test_no_interpolation({ property: 'position', from: 'absolute', to: 'static', }); +test_interpolation({ + property: 'position', + behavior: 'allow-discrete', + from: 'relative', + to: 'static', +}, [ + {at: -1, expect: 'relative'}, + {at: 0, expect: 'relative'}, + {at: 0.4, expect: 'relative'}, + {at: 0.5, expect: 'static'}, + {at: 1, expect: 'static'}, + {at: 1.5, expect: 'static'}, +]); + +test_interpolation({ + property: 'position', + behavior: 'allow-discrete', + from: 'sticky', + to: 'fixed', +}, [ + {at: -1, expect: 'sticky'}, + {at: 0, expect: 'sticky'}, + {at: 0.4, expect: 'sticky'}, + {at: 0.5, expect: 'fixed'}, + {at: 1, expect: 'fixed'}, + {at: 1.5, expect: 'fixed'}, +]); + // This is still discrete interpolation; this test ensures that the neutral // keyframe is defined correctly for position. test_interpolation({ |