diff options
Diffstat (limited to 'testing/web-platform/tests/css/CSS2/floats')
-rw-r--r-- | testing/web-platform/tests/css/CSS2/floats/float-no-interpolation.html | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/CSS2/floats/float-no-interpolation.html b/testing/web-platform/tests/css/CSS2/floats/float-no-interpolation.html index eb06dfefc6..92befefda1 100644 --- a/testing/web-platform/tests/css/CSS2/floats/float-no-interpolation.html +++ b/testing/web-platform/tests/css/CSS2/floats/float-no-interpolation.html @@ -7,9 +7,24 @@ <body> <script> +// Use default transition-behavior: normal. test_no_interpolation({ property: 'float', from: 'initial', to: 'right' }); + +test_interpolation({ + property: 'float', + behavior: 'allow-discrete', + from: 'left', + to: 'right', +}, [ + {at: -1, expect: 'left'}, + {at: 0, expect: 'left'}, + {at: 0.4, expect: 'left'}, + {at: 0.5, expect: 'right'}, + {at: 1, expect: 'right'}, + {at: 1.5, expect: 'right'}, +]); </script> |