LibWeb: Interpolate xywh() function by computed value

This commit is contained in:
Tim Ledbetter 2025-09-13 14:01:53 +01:00 committed by Sam Atkins
commit 0c89e86ff7
Notes: github-actions[bot] 2025-09-15 09:36:25 +00:00
3 changed files with 545 additions and 0 deletions

View file

@ -1220,6 +1220,16 @@ static RefPtr<StyleValue const> interpolate_value_impl(DOM::Element& element, Ca
return {};
return Inset { *interpolated_inset_box };
},
[&](Xywh const& from_xywh) -> Optional<BasicShape> {
auto& to_xywh = to_shape.get<Xywh>();
auto interpolated_x = interpolate_length_percentage(calculation_context, from_xywh.x, to_xywh.x, delta);
auto interpolated_y = interpolate_length_percentage(calculation_context, from_xywh.x, to_xywh.x, delta);
auto interpolated_width = interpolate_length_percentage(calculation_context, from_xywh.width, to_xywh.width, delta);
auto interpolated_height = interpolate_length_percentage(calculation_context, from_xywh.height, to_xywh.height, delta);
if (!interpolated_x.has_value() || !interpolated_y.has_value() || !interpolated_width.has_value() || !interpolated_height.has_value())
return {};
return Xywh { *interpolated_x, *interpolated_y, *interpolated_width, *interpolated_height };
},
[](auto&) -> Optional<BasicShape> {
return {};
});

View file

@ -0,0 +1,366 @@
Harness status: OK
Found 360 tests
222 Pass
138 Fail
Pass CSS Transitions with transition-behavior:allow-discrete: property <clip-path> from [initial] to [xywh(10px 10px 100px 100px)] at (-0.3) should be [initial]
Pass CSS Transitions with transition-behavior:allow-discrete: property <clip-path> from [initial] to [xywh(10px 10px 100px 100px)] at (0) should be [initial]
Pass CSS Transitions with transition-behavior:allow-discrete: property <clip-path> from [initial] to [xywh(10px 10px 100px 100px)] at (0.3) should be [initial]
Pass CSS Transitions with transition-behavior:allow-discrete: property <clip-path> from [initial] to [xywh(10px 10px 100px 100px)] at (0.5) should be [xywh(10px 10px 100px 100px)]
Pass CSS Transitions with transition-behavior:allow-discrete: property <clip-path> from [initial] to [xywh(10px 10px 100px 100px)] at (0.6) should be [xywh(10px 10px 100px 100px)]
Pass CSS Transitions with transition-behavior:allow-discrete: property <clip-path> from [initial] to [xywh(10px 10px 100px 100px)] at (1) should be [xywh(10px 10px 100px 100px)]
Pass CSS Transitions with transition-behavior:allow-discrete: property <clip-path> from [initial] to [xywh(10px 10px 100px 100px)] at (1.5) should be [xywh(10px 10px 100px 100px)]
Pass CSS Transitions with transition-property:all and transition-behavor:allow-discrete: property <clip-path> from [initial] to [xywh(10px 10px 100px 100px)] at (-0.3) should be [initial]
Pass CSS Transitions with transition-property:all and transition-behavor:allow-discrete: property <clip-path> from [initial] to [xywh(10px 10px 100px 100px)] at (0) should be [initial]
Pass CSS Transitions with transition-property:all and transition-behavor:allow-discrete: property <clip-path> from [initial] to [xywh(10px 10px 100px 100px)] at (0.3) should be [initial]
Pass CSS Transitions with transition-property:all and transition-behavor:allow-discrete: property <clip-path> from [initial] to [xywh(10px 10px 100px 100px)] at (0.5) should be [xywh(10px 10px 100px 100px)]
Pass CSS Transitions with transition-property:all and transition-behavor:allow-discrete: property <clip-path> from [initial] to [xywh(10px 10px 100px 100px)] at (0.6) should be [xywh(10px 10px 100px 100px)]
Pass CSS Transitions with transition-property:all and transition-behavor:allow-discrete: property <clip-path> from [initial] to [xywh(10px 10px 100px 100px)] at (1) should be [xywh(10px 10px 100px 100px)]
Pass CSS Transitions with transition-property:all and transition-behavor:allow-discrete: property <clip-path> from [initial] to [xywh(10px 10px 100px 100px)] at (1.5) should be [xywh(10px 10px 100px 100px)]
Pass CSS Transitions: property <clip-path> from [initial] to [xywh(10px 10px 100px 100px)] at (-0.3) should be [xywh(10px 10px 100px 100px)]
Pass CSS Transitions: property <clip-path> from [initial] to [xywh(10px 10px 100px 100px)] at (0) should be [xywh(10px 10px 100px 100px)]
Pass CSS Transitions: property <clip-path> from [initial] to [xywh(10px 10px 100px 100px)] at (0.3) should be [xywh(10px 10px 100px 100px)]
Pass CSS Transitions: property <clip-path> from [initial] to [xywh(10px 10px 100px 100px)] at (0.5) should be [xywh(10px 10px 100px 100px)]
Pass CSS Transitions: property <clip-path> from [initial] to [xywh(10px 10px 100px 100px)] at (0.6) should be [xywh(10px 10px 100px 100px)]
Pass CSS Transitions: property <clip-path> from [initial] to [xywh(10px 10px 100px 100px)] at (1) should be [xywh(10px 10px 100px 100px)]
Pass CSS Transitions: property <clip-path> from [initial] to [xywh(10px 10px 100px 100px)] at (1.5) should be [xywh(10px 10px 100px 100px)]
Pass CSS Transitions with transition: all: property <clip-path> from [initial] to [xywh(10px 10px 100px 100px)] at (-0.3) should be [xywh(10px 10px 100px 100px)]
Pass CSS Transitions with transition: all: property <clip-path> from [initial] to [xywh(10px 10px 100px 100px)] at (0) should be [xywh(10px 10px 100px 100px)]
Pass CSS Transitions with transition: all: property <clip-path> from [initial] to [xywh(10px 10px 100px 100px)] at (0.3) should be [xywh(10px 10px 100px 100px)]
Pass CSS Transitions with transition: all: property <clip-path> from [initial] to [xywh(10px 10px 100px 100px)] at (0.5) should be [xywh(10px 10px 100px 100px)]
Pass CSS Transitions with transition: all: property <clip-path> from [initial] to [xywh(10px 10px 100px 100px)] at (0.6) should be [xywh(10px 10px 100px 100px)]
Pass CSS Transitions with transition: all: property <clip-path> from [initial] to [xywh(10px 10px 100px 100px)] at (1) should be [xywh(10px 10px 100px 100px)]
Pass CSS Transitions with transition: all: property <clip-path> from [initial] to [xywh(10px 10px 100px 100px)] at (1.5) should be [xywh(10px 10px 100px 100px)]
Pass CSS Animations: property <clip-path> from [initial] to [xywh(10px 10px 100px 100px)] at (-0.3) should be [initial]
Pass CSS Animations: property <clip-path> from [initial] to [xywh(10px 10px 100px 100px)] at (0) should be [initial]
Pass CSS Animations: property <clip-path> from [initial] to [xywh(10px 10px 100px 100px)] at (0.3) should be [initial]
Pass CSS Animations: property <clip-path> from [initial] to [xywh(10px 10px 100px 100px)] at (0.5) should be [xywh(10px 10px 100px 100px)]
Pass CSS Animations: property <clip-path> from [initial] to [xywh(10px 10px 100px 100px)] at (0.6) should be [xywh(10px 10px 100px 100px)]
Pass CSS Animations: property <clip-path> from [initial] to [xywh(10px 10px 100px 100px)] at (1) should be [xywh(10px 10px 100px 100px)]
Pass CSS Animations: property <clip-path> from [initial] to [xywh(10px 10px 100px 100px)] at (1.5) should be [xywh(10px 10px 100px 100px)]
Pass Web Animations: property <clip-path> from [initial] to [xywh(10px 10px 100px 100px)] at (-0.3) should be [initial]
Pass Web Animations: property <clip-path> from [initial] to [xywh(10px 10px 100px 100px)] at (0) should be [initial]
Pass Web Animations: property <clip-path> from [initial] to [xywh(10px 10px 100px 100px)] at (0.3) should be [initial]
Pass Web Animations: property <clip-path> from [initial] to [xywh(10px 10px 100px 100px)] at (0.5) should be [xywh(10px 10px 100px 100px)]
Pass Web Animations: property <clip-path> from [initial] to [xywh(10px 10px 100px 100px)] at (0.6) should be [xywh(10px 10px 100px 100px)]
Pass Web Animations: property <clip-path> from [initial] to [xywh(10px 10px 100px 100px)] at (1) should be [xywh(10px 10px 100px 100px)]
Pass Web Animations: property <clip-path> from [initial] to [xywh(10px 10px 100px 100px)] at (1.5) should be [xywh(10px 10px 100px 100px)]
Pass CSS Transitions with transition-behavior:allow-discrete: property <clip-path> from [unset] to [xywh(10px 10px 100px 100px)] at (-0.3) should be [unset]
Pass CSS Transitions with transition-behavior:allow-discrete: property <clip-path> from [unset] to [xywh(10px 10px 100px 100px)] at (0) should be [unset]
Pass CSS Transitions with transition-behavior:allow-discrete: property <clip-path> from [unset] to [xywh(10px 10px 100px 100px)] at (0.3) should be [unset]
Pass CSS Transitions with transition-behavior:allow-discrete: property <clip-path> from [unset] to [xywh(10px 10px 100px 100px)] at (0.5) should be [xywh(10px 10px 100px 100px)]
Pass CSS Transitions with transition-behavior:allow-discrete: property <clip-path> from [unset] to [xywh(10px 10px 100px 100px)] at (0.6) should be [xywh(10px 10px 100px 100px)]
Pass CSS Transitions with transition-behavior:allow-discrete: property <clip-path> from [unset] to [xywh(10px 10px 100px 100px)] at (1) should be [xywh(10px 10px 100px 100px)]
Pass CSS Transitions with transition-behavior:allow-discrete: property <clip-path> from [unset] to [xywh(10px 10px 100px 100px)] at (1.5) should be [xywh(10px 10px 100px 100px)]
Pass CSS Transitions with transition-property:all and transition-behavor:allow-discrete: property <clip-path> from [unset] to [xywh(10px 10px 100px 100px)] at (-0.3) should be [unset]
Pass CSS Transitions with transition-property:all and transition-behavor:allow-discrete: property <clip-path> from [unset] to [xywh(10px 10px 100px 100px)] at (0) should be [unset]
Pass CSS Transitions with transition-property:all and transition-behavor:allow-discrete: property <clip-path> from [unset] to [xywh(10px 10px 100px 100px)] at (0.3) should be [unset]
Pass CSS Transitions with transition-property:all and transition-behavor:allow-discrete: property <clip-path> from [unset] to [xywh(10px 10px 100px 100px)] at (0.5) should be [xywh(10px 10px 100px 100px)]
Pass CSS Transitions with transition-property:all and transition-behavor:allow-discrete: property <clip-path> from [unset] to [xywh(10px 10px 100px 100px)] at (0.6) should be [xywh(10px 10px 100px 100px)]
Pass CSS Transitions with transition-property:all and transition-behavor:allow-discrete: property <clip-path> from [unset] to [xywh(10px 10px 100px 100px)] at (1) should be [xywh(10px 10px 100px 100px)]
Pass CSS Transitions with transition-property:all and transition-behavor:allow-discrete: property <clip-path> from [unset] to [xywh(10px 10px 100px 100px)] at (1.5) should be [xywh(10px 10px 100px 100px)]
Pass CSS Transitions: property <clip-path> from [unset] to [xywh(10px 10px 100px 100px)] at (-0.3) should be [xywh(10px 10px 100px 100px)]
Pass CSS Transitions: property <clip-path> from [unset] to [xywh(10px 10px 100px 100px)] at (0) should be [xywh(10px 10px 100px 100px)]
Pass CSS Transitions: property <clip-path> from [unset] to [xywh(10px 10px 100px 100px)] at (0.3) should be [xywh(10px 10px 100px 100px)]
Pass CSS Transitions: property <clip-path> from [unset] to [xywh(10px 10px 100px 100px)] at (0.5) should be [xywh(10px 10px 100px 100px)]
Pass CSS Transitions: property <clip-path> from [unset] to [xywh(10px 10px 100px 100px)] at (0.6) should be [xywh(10px 10px 100px 100px)]
Pass CSS Transitions: property <clip-path> from [unset] to [xywh(10px 10px 100px 100px)] at (1) should be [xywh(10px 10px 100px 100px)]
Pass CSS Transitions: property <clip-path> from [unset] to [xywh(10px 10px 100px 100px)] at (1.5) should be [xywh(10px 10px 100px 100px)]
Pass CSS Transitions with transition: all: property <clip-path> from [unset] to [xywh(10px 10px 100px 100px)] at (-0.3) should be [xywh(10px 10px 100px 100px)]
Pass CSS Transitions with transition: all: property <clip-path> from [unset] to [xywh(10px 10px 100px 100px)] at (0) should be [xywh(10px 10px 100px 100px)]
Pass CSS Transitions with transition: all: property <clip-path> from [unset] to [xywh(10px 10px 100px 100px)] at (0.3) should be [xywh(10px 10px 100px 100px)]
Pass CSS Transitions with transition: all: property <clip-path> from [unset] to [xywh(10px 10px 100px 100px)] at (0.5) should be [xywh(10px 10px 100px 100px)]
Pass CSS Transitions with transition: all: property <clip-path> from [unset] to [xywh(10px 10px 100px 100px)] at (0.6) should be [xywh(10px 10px 100px 100px)]
Pass CSS Transitions with transition: all: property <clip-path> from [unset] to [xywh(10px 10px 100px 100px)] at (1) should be [xywh(10px 10px 100px 100px)]
Pass CSS Transitions with transition: all: property <clip-path> from [unset] to [xywh(10px 10px 100px 100px)] at (1.5) should be [xywh(10px 10px 100px 100px)]
Pass CSS Animations: property <clip-path> from [unset] to [xywh(10px 10px 100px 100px)] at (-0.3) should be [unset]
Pass CSS Animations: property <clip-path> from [unset] to [xywh(10px 10px 100px 100px)] at (0) should be [unset]
Pass CSS Animations: property <clip-path> from [unset] to [xywh(10px 10px 100px 100px)] at (0.3) should be [unset]
Pass CSS Animations: property <clip-path> from [unset] to [xywh(10px 10px 100px 100px)] at (0.5) should be [xywh(10px 10px 100px 100px)]
Pass CSS Animations: property <clip-path> from [unset] to [xywh(10px 10px 100px 100px)] at (0.6) should be [xywh(10px 10px 100px 100px)]
Pass CSS Animations: property <clip-path> from [unset] to [xywh(10px 10px 100px 100px)] at (1) should be [xywh(10px 10px 100px 100px)]
Pass CSS Animations: property <clip-path> from [unset] to [xywh(10px 10px 100px 100px)] at (1.5) should be [xywh(10px 10px 100px 100px)]
Pass Web Animations: property <clip-path> from [unset] to [xywh(10px 10px 100px 100px)] at (-0.3) should be [unset]
Pass Web Animations: property <clip-path> from [unset] to [xywh(10px 10px 100px 100px)] at (0) should be [unset]
Pass Web Animations: property <clip-path> from [unset] to [xywh(10px 10px 100px 100px)] at (0.3) should be [unset]
Pass Web Animations: property <clip-path> from [unset] to [xywh(10px 10px 100px 100px)] at (0.5) should be [xywh(10px 10px 100px 100px)]
Pass Web Animations: property <clip-path> from [unset] to [xywh(10px 10px 100px 100px)] at (0.6) should be [xywh(10px 10px 100px 100px)]
Pass Web Animations: property <clip-path> from [unset] to [xywh(10px 10px 100px 100px)] at (1) should be [xywh(10px 10px 100px 100px)]
Pass Web Animations: property <clip-path> from [unset] to [xywh(10px 10px 100px 100px)] at (1.5) should be [xywh(10px 10px 100px 100px)]
Pass CSS Transitions with transition-behavior:allow-discrete: property <clip-path> from [initial] to [rect(10px 100px 100px 10px)] at (-0.3) should be [initial]
Pass CSS Transitions with transition-behavior:allow-discrete: property <clip-path> from [initial] to [rect(10px 100px 100px 10px)] at (0) should be [initial]
Pass CSS Transitions with transition-behavior:allow-discrete: property <clip-path> from [initial] to [rect(10px 100px 100px 10px)] at (0.3) should be [initial]
Pass CSS Transitions with transition-behavior:allow-discrete: property <clip-path> from [initial] to [rect(10px 100px 100px 10px)] at (0.5) should be [rect(10px 100px 100px 10px)]
Pass CSS Transitions with transition-behavior:allow-discrete: property <clip-path> from [initial] to [rect(10px 100px 100px 10px)] at (0.6) should be [rect(10px 100px 100px 10px)]
Pass CSS Transitions with transition-behavior:allow-discrete: property <clip-path> from [initial] to [rect(10px 100px 100px 10px)] at (1) should be [rect(10px 100px 100px 10px)]
Pass CSS Transitions with transition-behavior:allow-discrete: property <clip-path> from [initial] to [rect(10px 100px 100px 10px)] at (1.5) should be [rect(10px 100px 100px 10px)]
Pass CSS Transitions with transition-property:all and transition-behavor:allow-discrete: property <clip-path> from [initial] to [rect(10px 100px 100px 10px)] at (-0.3) should be [initial]
Pass CSS Transitions with transition-property:all and transition-behavor:allow-discrete: property <clip-path> from [initial] to [rect(10px 100px 100px 10px)] at (0) should be [initial]
Pass CSS Transitions with transition-property:all and transition-behavor:allow-discrete: property <clip-path> from [initial] to [rect(10px 100px 100px 10px)] at (0.3) should be [initial]
Pass CSS Transitions with transition-property:all and transition-behavor:allow-discrete: property <clip-path> from [initial] to [rect(10px 100px 100px 10px)] at (0.5) should be [rect(10px 100px 100px 10px)]
Pass CSS Transitions with transition-property:all and transition-behavor:allow-discrete: property <clip-path> from [initial] to [rect(10px 100px 100px 10px)] at (0.6) should be [rect(10px 100px 100px 10px)]
Pass CSS Transitions with transition-property:all and transition-behavor:allow-discrete: property <clip-path> from [initial] to [rect(10px 100px 100px 10px)] at (1) should be [rect(10px 100px 100px 10px)]
Pass CSS Transitions with transition-property:all and transition-behavor:allow-discrete: property <clip-path> from [initial] to [rect(10px 100px 100px 10px)] at (1.5) should be [rect(10px 100px 100px 10px)]
Pass CSS Transitions: property <clip-path> from [initial] to [rect(10px 100px 100px 10px)] at (-0.3) should be [rect(10px 100px 100px 10px)]
Pass CSS Transitions: property <clip-path> from [initial] to [rect(10px 100px 100px 10px)] at (0) should be [rect(10px 100px 100px 10px)]
Pass CSS Transitions: property <clip-path> from [initial] to [rect(10px 100px 100px 10px)] at (0.3) should be [rect(10px 100px 100px 10px)]
Pass CSS Transitions: property <clip-path> from [initial] to [rect(10px 100px 100px 10px)] at (0.5) should be [rect(10px 100px 100px 10px)]
Pass CSS Transitions: property <clip-path> from [initial] to [rect(10px 100px 100px 10px)] at (0.6) should be [rect(10px 100px 100px 10px)]
Pass CSS Transitions: property <clip-path> from [initial] to [rect(10px 100px 100px 10px)] at (1) should be [rect(10px 100px 100px 10px)]
Pass CSS Transitions: property <clip-path> from [initial] to [rect(10px 100px 100px 10px)] at (1.5) should be [rect(10px 100px 100px 10px)]
Pass CSS Transitions with transition: all: property <clip-path> from [initial] to [rect(10px 100px 100px 10px)] at (-0.3) should be [rect(10px 100px 100px 10px)]
Pass CSS Transitions with transition: all: property <clip-path> from [initial] to [rect(10px 100px 100px 10px)] at (0) should be [rect(10px 100px 100px 10px)]
Pass CSS Transitions with transition: all: property <clip-path> from [initial] to [rect(10px 100px 100px 10px)] at (0.3) should be [rect(10px 100px 100px 10px)]
Pass CSS Transitions with transition: all: property <clip-path> from [initial] to [rect(10px 100px 100px 10px)] at (0.5) should be [rect(10px 100px 100px 10px)]
Pass CSS Transitions with transition: all: property <clip-path> from [initial] to [rect(10px 100px 100px 10px)] at (0.6) should be [rect(10px 100px 100px 10px)]
Pass CSS Transitions with transition: all: property <clip-path> from [initial] to [rect(10px 100px 100px 10px)] at (1) should be [rect(10px 100px 100px 10px)]
Pass CSS Transitions with transition: all: property <clip-path> from [initial] to [rect(10px 100px 100px 10px)] at (1.5) should be [rect(10px 100px 100px 10px)]
Pass CSS Animations: property <clip-path> from [initial] to [rect(10px 100px 100px 10px)] at (-0.3) should be [initial]
Pass CSS Animations: property <clip-path> from [initial] to [rect(10px 100px 100px 10px)] at (0) should be [initial]
Pass CSS Animations: property <clip-path> from [initial] to [rect(10px 100px 100px 10px)] at (0.3) should be [initial]
Pass CSS Animations: property <clip-path> from [initial] to [rect(10px 100px 100px 10px)] at (0.5) should be [rect(10px 100px 100px 10px)]
Pass CSS Animations: property <clip-path> from [initial] to [rect(10px 100px 100px 10px)] at (0.6) should be [rect(10px 100px 100px 10px)]
Pass CSS Animations: property <clip-path> from [initial] to [rect(10px 100px 100px 10px)] at (1) should be [rect(10px 100px 100px 10px)]
Pass CSS Animations: property <clip-path> from [initial] to [rect(10px 100px 100px 10px)] at (1.5) should be [rect(10px 100px 100px 10px)]
Pass Web Animations: property <clip-path> from [initial] to [rect(10px 100px 100px 10px)] at (-0.3) should be [initial]
Pass Web Animations: property <clip-path> from [initial] to [rect(10px 100px 100px 10px)] at (0) should be [initial]
Pass Web Animations: property <clip-path> from [initial] to [rect(10px 100px 100px 10px)] at (0.3) should be [initial]
Pass Web Animations: property <clip-path> from [initial] to [rect(10px 100px 100px 10px)] at (0.5) should be [rect(10px 100px 100px 10px)]
Pass Web Animations: property <clip-path> from [initial] to [rect(10px 100px 100px 10px)] at (0.6) should be [rect(10px 100px 100px 10px)]
Pass Web Animations: property <clip-path> from [initial] to [rect(10px 100px 100px 10px)] at (1) should be [rect(10px 100px 100px 10px)]
Pass Web Animations: property <clip-path> from [initial] to [rect(10px 100px 100px 10px)] at (1.5) should be [rect(10px 100px 100px 10px)]
Pass CSS Transitions with transition-behavior:allow-discrete: property <clip-path> from [unset] to [rect(10px 100px 100px 10px)] at (-0.3) should be [unset]
Pass CSS Transitions with transition-behavior:allow-discrete: property <clip-path> from [unset] to [rect(10px 100px 100px 10px)] at (0) should be [unset]
Pass CSS Transitions with transition-behavior:allow-discrete: property <clip-path> from [unset] to [rect(10px 100px 100px 10px)] at (0.3) should be [unset]
Pass CSS Transitions with transition-behavior:allow-discrete: property <clip-path> from [unset] to [rect(10px 100px 100px 10px)] at (0.5) should be [rect(10px 100px 100px 10px)]
Pass CSS Transitions with transition-behavior:allow-discrete: property <clip-path> from [unset] to [rect(10px 100px 100px 10px)] at (0.6) should be [rect(10px 100px 100px 10px)]
Pass CSS Transitions with transition-behavior:allow-discrete: property <clip-path> from [unset] to [rect(10px 100px 100px 10px)] at (1) should be [rect(10px 100px 100px 10px)]
Pass CSS Transitions with transition-behavior:allow-discrete: property <clip-path> from [unset] to [rect(10px 100px 100px 10px)] at (1.5) should be [rect(10px 100px 100px 10px)]
Pass CSS Transitions with transition-property:all and transition-behavor:allow-discrete: property <clip-path> from [unset] to [rect(10px 100px 100px 10px)] at (-0.3) should be [unset]
Pass CSS Transitions with transition-property:all and transition-behavor:allow-discrete: property <clip-path> from [unset] to [rect(10px 100px 100px 10px)] at (0) should be [unset]
Pass CSS Transitions with transition-property:all and transition-behavor:allow-discrete: property <clip-path> from [unset] to [rect(10px 100px 100px 10px)] at (0.3) should be [unset]
Pass CSS Transitions with transition-property:all and transition-behavor:allow-discrete: property <clip-path> from [unset] to [rect(10px 100px 100px 10px)] at (0.5) should be [rect(10px 100px 100px 10px)]
Pass CSS Transitions with transition-property:all and transition-behavor:allow-discrete: property <clip-path> from [unset] to [rect(10px 100px 100px 10px)] at (0.6) should be [rect(10px 100px 100px 10px)]
Pass CSS Transitions with transition-property:all and transition-behavor:allow-discrete: property <clip-path> from [unset] to [rect(10px 100px 100px 10px)] at (1) should be [rect(10px 100px 100px 10px)]
Pass CSS Transitions with transition-property:all and transition-behavor:allow-discrete: property <clip-path> from [unset] to [rect(10px 100px 100px 10px)] at (1.5) should be [rect(10px 100px 100px 10px)]
Pass CSS Transitions: property <clip-path> from [unset] to [rect(10px 100px 100px 10px)] at (-0.3) should be [rect(10px 100px 100px 10px)]
Pass CSS Transitions: property <clip-path> from [unset] to [rect(10px 100px 100px 10px)] at (0) should be [rect(10px 100px 100px 10px)]
Pass CSS Transitions: property <clip-path> from [unset] to [rect(10px 100px 100px 10px)] at (0.3) should be [rect(10px 100px 100px 10px)]
Pass CSS Transitions: property <clip-path> from [unset] to [rect(10px 100px 100px 10px)] at (0.5) should be [rect(10px 100px 100px 10px)]
Pass CSS Transitions: property <clip-path> from [unset] to [rect(10px 100px 100px 10px)] at (0.6) should be [rect(10px 100px 100px 10px)]
Pass CSS Transitions: property <clip-path> from [unset] to [rect(10px 100px 100px 10px)] at (1) should be [rect(10px 100px 100px 10px)]
Pass CSS Transitions: property <clip-path> from [unset] to [rect(10px 100px 100px 10px)] at (1.5) should be [rect(10px 100px 100px 10px)]
Pass CSS Transitions with transition: all: property <clip-path> from [unset] to [rect(10px 100px 100px 10px)] at (-0.3) should be [rect(10px 100px 100px 10px)]
Pass CSS Transitions with transition: all: property <clip-path> from [unset] to [rect(10px 100px 100px 10px)] at (0) should be [rect(10px 100px 100px 10px)]
Pass CSS Transitions with transition: all: property <clip-path> from [unset] to [rect(10px 100px 100px 10px)] at (0.3) should be [rect(10px 100px 100px 10px)]
Pass CSS Transitions with transition: all: property <clip-path> from [unset] to [rect(10px 100px 100px 10px)] at (0.5) should be [rect(10px 100px 100px 10px)]
Pass CSS Transitions with transition: all: property <clip-path> from [unset] to [rect(10px 100px 100px 10px)] at (0.6) should be [rect(10px 100px 100px 10px)]
Pass CSS Transitions with transition: all: property <clip-path> from [unset] to [rect(10px 100px 100px 10px)] at (1) should be [rect(10px 100px 100px 10px)]
Pass CSS Transitions with transition: all: property <clip-path> from [unset] to [rect(10px 100px 100px 10px)] at (1.5) should be [rect(10px 100px 100px 10px)]
Pass CSS Animations: property <clip-path> from [unset] to [rect(10px 100px 100px 10px)] at (-0.3) should be [unset]
Pass CSS Animations: property <clip-path> from [unset] to [rect(10px 100px 100px 10px)] at (0) should be [unset]
Pass CSS Animations: property <clip-path> from [unset] to [rect(10px 100px 100px 10px)] at (0.3) should be [unset]
Pass CSS Animations: property <clip-path> from [unset] to [rect(10px 100px 100px 10px)] at (0.5) should be [rect(10px 100px 100px 10px)]
Pass CSS Animations: property <clip-path> from [unset] to [rect(10px 100px 100px 10px)] at (0.6) should be [rect(10px 100px 100px 10px)]
Pass CSS Animations: property <clip-path> from [unset] to [rect(10px 100px 100px 10px)] at (1) should be [rect(10px 100px 100px 10px)]
Pass CSS Animations: property <clip-path> from [unset] to [rect(10px 100px 100px 10px)] at (1.5) should be [rect(10px 100px 100px 10px)]
Pass Web Animations: property <clip-path> from [unset] to [rect(10px 100px 100px 10px)] at (-0.3) should be [unset]
Pass Web Animations: property <clip-path> from [unset] to [rect(10px 100px 100px 10px)] at (0) should be [unset]
Pass Web Animations: property <clip-path> from [unset] to [rect(10px 100px 100px 10px)] at (0.3) should be [unset]
Pass Web Animations: property <clip-path> from [unset] to [rect(10px 100px 100px 10px)] at (0.5) should be [rect(10px 100px 100px 10px)]
Pass Web Animations: property <clip-path> from [unset] to [rect(10px 100px 100px 10px)] at (0.6) should be [rect(10px 100px 100px 10px)]
Pass Web Animations: property <clip-path> from [unset] to [rect(10px 100px 100px 10px)] at (1) should be [rect(10px 100px 100px 10px)]
Pass Web Animations: property <clip-path> from [unset] to [rect(10px 100px 100px 10px)] at (1.5) should be [rect(10px 100px 100px 10px)]
Pass CSS Transitions: property <clip-path> from [xywh(5px 5px 150% 150%)] to [xywh(10px 10px 100% 100%)] at (-1) should be [xywh(0px 0px 200% 200%)]
Pass CSS Transitions: property <clip-path> from [xywh(5px 5px 150% 150%)] to [xywh(10px 10px 100% 100%)] at (0) should be [xywh(5px 5px 150% 150%)]
Pass CSS Transitions: property <clip-path> from [xywh(5px 5px 150% 150%)] to [xywh(10px 10px 100% 100%)] at (0.125) should be [xywh(5.63px 5.63px 143.75% 143.75%)]
Pass CSS Transitions: property <clip-path> from [xywh(5px 5px 150% 150%)] to [xywh(10px 10px 100% 100%)] at (0.875) should be [xywh(9.38px 9.38px 106.25% 106.25%)]
Pass CSS Transitions: property <clip-path> from [xywh(5px 5px 150% 150%)] to [xywh(10px 10px 100% 100%)] at (1) should be [xywh(10px 10px 100% 100%)]
Pass CSS Transitions: property <clip-path> from [xywh(5px 5px 150% 150%)] to [xywh(10px 10px 100% 100%)] at (2) should be [xywh(15px 15px 50% 50%)]
Pass CSS Transitions with transition: all: property <clip-path> from [xywh(5px 5px 150% 150%)] to [xywh(10px 10px 100% 100%)] at (-1) should be [xywh(0px 0px 200% 200%)]
Pass CSS Transitions with transition: all: property <clip-path> from [xywh(5px 5px 150% 150%)] to [xywh(10px 10px 100% 100%)] at (0) should be [xywh(5px 5px 150% 150%)]
Pass CSS Transitions with transition: all: property <clip-path> from [xywh(5px 5px 150% 150%)] to [xywh(10px 10px 100% 100%)] at (0.125) should be [xywh(5.63px 5.63px 143.75% 143.75%)]
Pass CSS Transitions with transition: all: property <clip-path> from [xywh(5px 5px 150% 150%)] to [xywh(10px 10px 100% 100%)] at (0.875) should be [xywh(9.38px 9.38px 106.25% 106.25%)]
Pass CSS Transitions with transition: all: property <clip-path> from [xywh(5px 5px 150% 150%)] to [xywh(10px 10px 100% 100%)] at (1) should be [xywh(10px 10px 100% 100%)]
Pass CSS Transitions with transition: all: property <clip-path> from [xywh(5px 5px 150% 150%)] to [xywh(10px 10px 100% 100%)] at (2) should be [xywh(15px 15px 50% 50%)]
Pass CSS Animations: property <clip-path> from [xywh(5px 5px 150% 150%)] to [xywh(10px 10px 100% 100%)] at (-1) should be [xywh(0px 0px 200% 200%)]
Pass CSS Animations: property <clip-path> from [xywh(5px 5px 150% 150%)] to [xywh(10px 10px 100% 100%)] at (0) should be [xywh(5px 5px 150% 150%)]
Pass CSS Animations: property <clip-path> from [xywh(5px 5px 150% 150%)] to [xywh(10px 10px 100% 100%)] at (0.125) should be [xywh(5.63px 5.63px 143.75% 143.75%)]
Pass CSS Animations: property <clip-path> from [xywh(5px 5px 150% 150%)] to [xywh(10px 10px 100% 100%)] at (0.875) should be [xywh(9.38px 9.38px 106.25% 106.25%)]
Pass CSS Animations: property <clip-path> from [xywh(5px 5px 150% 150%)] to [xywh(10px 10px 100% 100%)] at (1) should be [xywh(10px 10px 100% 100%)]
Pass CSS Animations: property <clip-path> from [xywh(5px 5px 150% 150%)] to [xywh(10px 10px 100% 100%)] at (2) should be [xywh(15px 15px 50% 50%)]
Pass Web Animations: property <clip-path> from [xywh(5px 5px 150% 150%)] to [xywh(10px 10px 100% 100%)] at (-1) should be [xywh(0px 0px 200% 200%)]
Pass Web Animations: property <clip-path> from [xywh(5px 5px 150% 150%)] to [xywh(10px 10px 100% 100%)] at (0) should be [xywh(5px 5px 150% 150%)]
Pass Web Animations: property <clip-path> from [xywh(5px 5px 150% 150%)] to [xywh(10px 10px 100% 100%)] at (0.125) should be [xywh(5.63px 5.63px 143.75% 143.75%)]
Pass Web Animations: property <clip-path> from [xywh(5px 5px 150% 150%)] to [xywh(10px 10px 100% 100%)] at (0.875) should be [xywh(9.38px 9.38px 106.25% 106.25%)]
Pass Web Animations: property <clip-path> from [xywh(5px 5px 150% 150%)] to [xywh(10px 10px 100% 100%)] at (1) should be [xywh(10px 10px 100% 100%)]
Pass Web Animations: property <clip-path> from [xywh(5px 5px 150% 150%)] to [xywh(10px 10px 100% 100%)] at (2) should be [xywh(15px 15px 50% 50%)]
Fail CSS Transitions: property <clip-path> from [rect(10px 100px 50% 10%)] to [rect(50px 200px 90% 50%)] at (-1) should be [rect(-30px 0px 10% -30%)]
Fail CSS Transitions: property <clip-path> from [rect(10px 100px 50% 10%)] to [rect(50px 200px 90% 50%)] at (0) should be [rect(10px 100px 50% 10%)]
Fail CSS Transitions: property <clip-path> from [rect(10px 100px 50% 10%)] to [rect(50px 200px 90% 50%)] at (0.125) should be [rect(15px 112.5px 55% 15%)]
Fail CSS Transitions: property <clip-path> from [rect(10px 100px 50% 10%)] to [rect(50px 200px 90% 50%)] at (0.875) should be [rect(45px 187.5px 85% 45%)]
Pass CSS Transitions: property <clip-path> from [rect(10px 100px 50% 10%)] to [rect(50px 200px 90% 50%)] at (1) should be [rect(50px 200px 90% 50%)]
Fail CSS Transitions: property <clip-path> from [rect(10px 100px 50% 10%)] to [rect(50px 200px 90% 50%)] at (2) should be [rect(90px 300px 130% 90%)]
Fail CSS Transitions with transition: all: property <clip-path> from [rect(10px 100px 50% 10%)] to [rect(50px 200px 90% 50%)] at (-1) should be [rect(-30px 0px 10% -30%)]
Fail CSS Transitions with transition: all: property <clip-path> from [rect(10px 100px 50% 10%)] to [rect(50px 200px 90% 50%)] at (0) should be [rect(10px 100px 50% 10%)]
Fail CSS Transitions with transition: all: property <clip-path> from [rect(10px 100px 50% 10%)] to [rect(50px 200px 90% 50%)] at (0.125) should be [rect(15px 112.5px 55% 15%)]
Fail CSS Transitions with transition: all: property <clip-path> from [rect(10px 100px 50% 10%)] to [rect(50px 200px 90% 50%)] at (0.875) should be [rect(45px 187.5px 85% 45%)]
Pass CSS Transitions with transition: all: property <clip-path> from [rect(10px 100px 50% 10%)] to [rect(50px 200px 90% 50%)] at (1) should be [rect(50px 200px 90% 50%)]
Fail CSS Transitions with transition: all: property <clip-path> from [rect(10px 100px 50% 10%)] to [rect(50px 200px 90% 50%)] at (2) should be [rect(90px 300px 130% 90%)]
Fail CSS Animations: property <clip-path> from [rect(10px 100px 50% 10%)] to [rect(50px 200px 90% 50%)] at (-1) should be [rect(-30px 0px 10% -30%)]
Pass CSS Animations: property <clip-path> from [rect(10px 100px 50% 10%)] to [rect(50px 200px 90% 50%)] at (0) should be [rect(10px 100px 50% 10%)]
Fail CSS Animations: property <clip-path> from [rect(10px 100px 50% 10%)] to [rect(50px 200px 90% 50%)] at (0.125) should be [rect(15px 112.5px 55% 15%)]
Fail CSS Animations: property <clip-path> from [rect(10px 100px 50% 10%)] to [rect(50px 200px 90% 50%)] at (0.875) should be [rect(45px 187.5px 85% 45%)]
Pass CSS Animations: property <clip-path> from [rect(10px 100px 50% 10%)] to [rect(50px 200px 90% 50%)] at (1) should be [rect(50px 200px 90% 50%)]
Fail CSS Animations: property <clip-path> from [rect(10px 100px 50% 10%)] to [rect(50px 200px 90% 50%)] at (2) should be [rect(90px 300px 130% 90%)]
Fail Web Animations: property <clip-path> from [rect(10px 100px 50% 10%)] to [rect(50px 200px 90% 50%)] at (-1) should be [rect(-30px 0px 10% -30%)]
Pass Web Animations: property <clip-path> from [rect(10px 100px 50% 10%)] to [rect(50px 200px 90% 50%)] at (0) should be [rect(10px 100px 50% 10%)]
Fail Web Animations: property <clip-path> from [rect(10px 100px 50% 10%)] to [rect(50px 200px 90% 50%)] at (0.125) should be [rect(15px 112.5px 55% 15%)]
Fail Web Animations: property <clip-path> from [rect(10px 100px 50% 10%)] to [rect(50px 200px 90% 50%)] at (0.875) should be [rect(45px 187.5px 85% 45%)]
Pass Web Animations: property <clip-path> from [rect(10px 100px 50% 10%)] to [rect(50px 200px 90% 50%)] at (1) should be [rect(50px 200px 90% 50%)]
Fail Web Animations: property <clip-path> from [rect(10px 100px 50% 10%)] to [rect(50px 200px 90% 50%)] at (2) should be [rect(90px 300px 130% 90%)]
Fail CSS Transitions: property <clip-path> from [rect(auto auto auto auto)] to [rect(80% 20% 20% 80%)] at (-1) should be [inset(-80%)]
Fail CSS Transitions: property <clip-path> from [rect(auto auto auto auto)] to [rect(80% 20% 20% 80%)] at (0) should be [inset(0%)]
Fail CSS Transitions: property <clip-path> from [rect(auto auto auto auto)] to [rect(80% 20% 20% 80%)] at (0.125) should be [inset(10%)]
Fail CSS Transitions: property <clip-path> from [rect(auto auto auto auto)] to [rect(80% 20% 20% 80%)] at (0.875) should be [inset(70%)]
Fail CSS Transitions: property <clip-path> from [rect(auto auto auto auto)] to [rect(80% 20% 20% 80%)] at (1) should be [inset(80%)]
Fail CSS Transitions: property <clip-path> from [rect(auto auto auto auto)] to [rect(80% 20% 20% 80%)] at (2) should be [inset(160%)]
Fail CSS Transitions with transition: all: property <clip-path> from [rect(auto auto auto auto)] to [rect(80% 20% 20% 80%)] at (-1) should be [inset(-80%)]
Fail CSS Transitions with transition: all: property <clip-path> from [rect(auto auto auto auto)] to [rect(80% 20% 20% 80%)] at (0) should be [inset(0%)]
Fail CSS Transitions with transition: all: property <clip-path> from [rect(auto auto auto auto)] to [rect(80% 20% 20% 80%)] at (0.125) should be [inset(10%)]
Fail CSS Transitions with transition: all: property <clip-path> from [rect(auto auto auto auto)] to [rect(80% 20% 20% 80%)] at (0.875) should be [inset(70%)]
Fail CSS Transitions with transition: all: property <clip-path> from [rect(auto auto auto auto)] to [rect(80% 20% 20% 80%)] at (1) should be [inset(80%)]
Fail CSS Transitions with transition: all: property <clip-path> from [rect(auto auto auto auto)] to [rect(80% 20% 20% 80%)] at (2) should be [inset(160%)]
Fail CSS Animations: property <clip-path> from [rect(auto auto auto auto)] to [rect(80% 20% 20% 80%)] at (-1) should be [inset(-80%)]
Fail CSS Animations: property <clip-path> from [rect(auto auto auto auto)] to [rect(80% 20% 20% 80%)] at (0) should be [inset(0%)]
Fail CSS Animations: property <clip-path> from [rect(auto auto auto auto)] to [rect(80% 20% 20% 80%)] at (0.125) should be [inset(10%)]
Fail CSS Animations: property <clip-path> from [rect(auto auto auto auto)] to [rect(80% 20% 20% 80%)] at (0.875) should be [inset(70%)]
Fail CSS Animations: property <clip-path> from [rect(auto auto auto auto)] to [rect(80% 20% 20% 80%)] at (1) should be [inset(80%)]
Fail CSS Animations: property <clip-path> from [rect(auto auto auto auto)] to [rect(80% 20% 20% 80%)] at (2) should be [inset(160%)]
Fail Web Animations: property <clip-path> from [rect(auto auto auto auto)] to [rect(80% 20% 20% 80%)] at (-1) should be [inset(-80%)]
Fail Web Animations: property <clip-path> from [rect(auto auto auto auto)] to [rect(80% 20% 20% 80%)] at (0) should be [inset(0%)]
Fail Web Animations: property <clip-path> from [rect(auto auto auto auto)] to [rect(80% 20% 20% 80%)] at (0.125) should be [inset(10%)]
Fail Web Animations: property <clip-path> from [rect(auto auto auto auto)] to [rect(80% 20% 20% 80%)] at (0.875) should be [inset(70%)]
Fail Web Animations: property <clip-path> from [rect(auto auto auto auto)] to [rect(80% 20% 20% 80%)] at (1) should be [inset(80%)]
Fail Web Animations: property <clip-path> from [rect(auto auto auto auto)] to [rect(80% 20% 20% 80%)] at (2) should be [inset(160%)]
Fail CSS Transitions: property <clip-path> from neutral to [xywh(20% 50px 70px 100%)] at (-1) should be [inset(-30px calc(-80% + 90px) calc(0% + 70px) calc(-20% + 20px)]
Fail CSS Transitions: property <clip-path> from neutral to [xywh(20% 50px 70px 100%)] at (0) should be [inset(10px calc(0% + 10px) calc(0% + 10px))]
Fail CSS Transitions: property <clip-path> from neutral to [xywh(20% 50px 70px 100%)] at (0.125) should be [inset(15px 10% calc(0% + 2.5px) calc(2.5% + 8.75px))]
Fail CSS Transitions: property <clip-path> from neutral to [xywh(20% 50px 70px 100%)] at (0.875) should be [inset(45px calc(70% - 60px) calc(0% - 42.5px) calc(17.5% + 1.25px))]
Fail CSS Transitions: property <clip-path> from neutral to [xywh(20% 50px 70px 100%)] at (1) should be [inset(50px calc(80% - 70px) calc(0% - 50px) 20%)]
Fail CSS Transitions: property <clip-path> from neutral to [xywh(20% 50px 70px 100%)] at (2) should be [inset(90px calc(160% - 150px) calc(0% - 110px) calc(40% - 10px))]
Fail CSS Transitions with transition: all: property <clip-path> from neutral to [xywh(20% 50px 70px 100%)] at (-1) should be [inset(-30px calc(-80% + 90px) calc(0% + 70px) calc(-20% + 20px)]
Fail CSS Transitions with transition: all: property <clip-path> from neutral to [xywh(20% 50px 70px 100%)] at (0) should be [inset(10px calc(0% + 10px) calc(0% + 10px))]
Fail CSS Transitions with transition: all: property <clip-path> from neutral to [xywh(20% 50px 70px 100%)] at (0.125) should be [inset(15px 10% calc(0% + 2.5px) calc(2.5% + 8.75px))]
Fail CSS Transitions with transition: all: property <clip-path> from neutral to [xywh(20% 50px 70px 100%)] at (0.875) should be [inset(45px calc(70% - 60px) calc(0% - 42.5px) calc(17.5% + 1.25px))]
Fail CSS Transitions with transition: all: property <clip-path> from neutral to [xywh(20% 50px 70px 100%)] at (1) should be [inset(50px calc(80% - 70px) calc(0% - 50px) 20%)]
Fail CSS Transitions with transition: all: property <clip-path> from neutral to [xywh(20% 50px 70px 100%)] at (2) should be [inset(90px calc(160% - 150px) calc(0% - 110px) calc(40% - 10px))]
Pass CSS Animations: property <clip-path> from neutral to [xywh(20% 50px 70px 100%)] at (-1) should be [inset(-30px calc(-80% + 90px) calc(0% + 70px) calc(-20% + 20px)]
Pass CSS Animations: property <clip-path> from neutral to [xywh(20% 50px 70px 100%)] at (0) should be [inset(10px calc(0% + 10px) calc(0% + 10px))]
Pass CSS Animations: property <clip-path> from neutral to [xywh(20% 50px 70px 100%)] at (0.125) should be [inset(15px 10% calc(0% + 2.5px) calc(2.5% + 8.75px))]
Fail CSS Animations: property <clip-path> from neutral to [xywh(20% 50px 70px 100%)] at (0.875) should be [inset(45px calc(70% - 60px) calc(0% - 42.5px) calc(17.5% + 1.25px))]
Fail CSS Animations: property <clip-path> from neutral to [xywh(20% 50px 70px 100%)] at (1) should be [inset(50px calc(80% - 70px) calc(0% - 50px) 20%)]
Fail CSS Animations: property <clip-path> from neutral to [xywh(20% 50px 70px 100%)] at (2) should be [inset(90px calc(160% - 150px) calc(0% - 110px) calc(40% - 10px))]
Pass Web Animations: property <clip-path> from neutral to [xywh(20% 50px 70px 100%)] at (-1) should be [inset(-30px calc(-80% + 90px) calc(0% + 70px) calc(-20% + 20px)]
Pass Web Animations: property <clip-path> from neutral to [xywh(20% 50px 70px 100%)] at (0) should be [inset(10px calc(0% + 10px) calc(0% + 10px))]
Pass Web Animations: property <clip-path> from neutral to [xywh(20% 50px 70px 100%)] at (0.125) should be [inset(15px 10% calc(0% + 2.5px) calc(2.5% + 8.75px))]
Fail Web Animations: property <clip-path> from neutral to [xywh(20% 50px 70px 100%)] at (0.875) should be [inset(45px calc(70% - 60px) calc(0% - 42.5px) calc(17.5% + 1.25px))]
Fail Web Animations: property <clip-path> from neutral to [xywh(20% 50px 70px 100%)] at (1) should be [inset(50px calc(80% - 70px) calc(0% - 50px) 20%)]
Fail Web Animations: property <clip-path> from neutral to [xywh(20% 50px 70px 100%)] at (2) should be [inset(90px calc(160% - 150px) calc(0% - 110px) calc(40% - 10px))]
Fail CSS Transitions: property <clip-path> from neutral to [rect(50px 70px 80% 20%)] at (-1) should be [inset(-30px calc(-100% + 90px) calc(-20% + 20px) calc(-20% + 20px)]
Fail CSS Transitions: property <clip-path> from neutral to [rect(50px 70px 80% 20%)] at (0) should be [inset(10px calc(0% + 10px) calc(0% + 10px))]
Fail CSS Transitions: property <clip-path> from neutral to [rect(50px 70px 80% 20%)] at (0.125) should be [inset(15px 12.5% calc(2.5% + 8.75px) calc(2.5% + 8.75px))]
Fail CSS Transitions: property <clip-path> from neutral to [rect(50px 70px 80% 20%)] at (0.875) should be [inset(45px calc(87.5% - 60px) calc(17.5% + 1.25px) calc(17.5% + 1.25px))]
Fail CSS Transitions: property <clip-path> from neutral to [rect(50px 70px 80% 20%)] at (1) should be [inset(50px calc(100% - 70px) 20% 20%)]
Fail CSS Transitions: property <clip-path> from neutral to [rect(50px 70px 80% 20%)] at (2) should be [inset(90px calc(200% - 150px) calc(40% - 10px) calc(40% - 10px))]
Fail CSS Transitions with transition: all: property <clip-path> from neutral to [rect(50px 70px 80% 20%)] at (-1) should be [inset(-30px calc(-100% + 90px) calc(-20% + 20px) calc(-20% + 20px)]
Fail CSS Transitions with transition: all: property <clip-path> from neutral to [rect(50px 70px 80% 20%)] at (0) should be [inset(10px calc(0% + 10px) calc(0% + 10px))]
Fail CSS Transitions with transition: all: property <clip-path> from neutral to [rect(50px 70px 80% 20%)] at (0.125) should be [inset(15px 12.5% calc(2.5% + 8.75px) calc(2.5% + 8.75px))]
Fail CSS Transitions with transition: all: property <clip-path> from neutral to [rect(50px 70px 80% 20%)] at (0.875) should be [inset(45px calc(87.5% - 60px) calc(17.5% + 1.25px) calc(17.5% + 1.25px))]
Fail CSS Transitions with transition: all: property <clip-path> from neutral to [rect(50px 70px 80% 20%)] at (1) should be [inset(50px calc(100% - 70px) 20% 20%)]
Fail CSS Transitions with transition: all: property <clip-path> from neutral to [rect(50px 70px 80% 20%)] at (2) should be [inset(90px calc(200% - 150px) calc(40% - 10px) calc(40% - 10px))]
Pass CSS Animations: property <clip-path> from neutral to [rect(50px 70px 80% 20%)] at (-1) should be [inset(-30px calc(-100% + 90px) calc(-20% + 20px) calc(-20% + 20px)]
Pass CSS Animations: property <clip-path> from neutral to [rect(50px 70px 80% 20%)] at (0) should be [inset(10px calc(0% + 10px) calc(0% + 10px))]
Pass CSS Animations: property <clip-path> from neutral to [rect(50px 70px 80% 20%)] at (0.125) should be [inset(15px 12.5% calc(2.5% + 8.75px) calc(2.5% + 8.75px))]
Fail CSS Animations: property <clip-path> from neutral to [rect(50px 70px 80% 20%)] at (0.875) should be [inset(45px calc(87.5% - 60px) calc(17.5% + 1.25px) calc(17.5% + 1.25px))]
Fail CSS Animations: property <clip-path> from neutral to [rect(50px 70px 80% 20%)] at (1) should be [inset(50px calc(100% - 70px) 20% 20%)]
Fail CSS Animations: property <clip-path> from neutral to [rect(50px 70px 80% 20%)] at (2) should be [inset(90px calc(200% - 150px) calc(40% - 10px) calc(40% - 10px))]
Pass Web Animations: property <clip-path> from neutral to [rect(50px 70px 80% 20%)] at (-1) should be [inset(-30px calc(-100% + 90px) calc(-20% + 20px) calc(-20% + 20px)]
Pass Web Animations: property <clip-path> from neutral to [rect(50px 70px 80% 20%)] at (0) should be [inset(10px calc(0% + 10px) calc(0% + 10px))]
Pass Web Animations: property <clip-path> from neutral to [rect(50px 70px 80% 20%)] at (0.125) should be [inset(15px 12.5% calc(2.5% + 8.75px) calc(2.5% + 8.75px))]
Fail Web Animations: property <clip-path> from neutral to [rect(50px 70px 80% 20%)] at (0.875) should be [inset(45px calc(87.5% - 60px) calc(17.5% + 1.25px) calc(17.5% + 1.25px))]
Fail Web Animations: property <clip-path> from neutral to [rect(50px 70px 80% 20%)] at (1) should be [inset(50px calc(100% - 70px) 20% 20%)]
Fail Web Animations: property <clip-path> from neutral to [rect(50px 70px 80% 20%)] at (2) should be [inset(90px calc(200% - 150px) calc(40% - 10px) calc(40% - 10px))]
Fail CSS Transitions: property <clip-path> from [inherit] to [xywh(20% 50px 70px 100%)] at (-1) should be [inset(-30px calc(-80% + 90px) calc(0% + 70px) calc(-20% + 20px)]
Fail CSS Transitions: property <clip-path> from [inherit] to [xywh(20% 50px 70px 100%)] at (0) should be [inset(10px calc(0% + 10px) calc(0% + 10px))]
Fail CSS Transitions: property <clip-path> from [inherit] to [xywh(20% 50px 70px 100%)] at (0.125) should be [inset(15px 10% calc(0% + 2.5px) calc(2.5% + 8.75px))]
Fail CSS Transitions: property <clip-path> from [inherit] to [xywh(20% 50px 70px 100%)] at (0.875) should be [inset(45px calc(70% - 60px) calc(0% - 42.5px) calc(17.5% + 1.25px))]
Fail CSS Transitions: property <clip-path> from [inherit] to [xywh(20% 50px 70px 100%)] at (1) should be [inset(50px calc(80% - 70px) calc(0% - 50px) 20%)]
Fail CSS Transitions: property <clip-path> from [inherit] to [xywh(20% 50px 70px 100%)] at (2) should be [inset(90px calc(160% - 150px) calc(0% - 110px) calc(40% - 10px))]
Fail CSS Transitions with transition: all: property <clip-path> from [inherit] to [xywh(20% 50px 70px 100%)] at (-1) should be [inset(-30px calc(-80% + 90px) calc(0% + 70px) calc(-20% + 20px)]
Fail CSS Transitions with transition: all: property <clip-path> from [inherit] to [xywh(20% 50px 70px 100%)] at (0) should be [inset(10px calc(0% + 10px) calc(0% + 10px))]
Fail CSS Transitions with transition: all: property <clip-path> from [inherit] to [xywh(20% 50px 70px 100%)] at (0.125) should be [inset(15px 10% calc(0% + 2.5px) calc(2.5% + 8.75px))]
Fail CSS Transitions with transition: all: property <clip-path> from [inherit] to [xywh(20% 50px 70px 100%)] at (0.875) should be [inset(45px calc(70% - 60px) calc(0% - 42.5px) calc(17.5% + 1.25px))]
Fail CSS Transitions with transition: all: property <clip-path> from [inherit] to [xywh(20% 50px 70px 100%)] at (1) should be [inset(50px calc(80% - 70px) calc(0% - 50px) 20%)]
Fail CSS Transitions with transition: all: property <clip-path> from [inherit] to [xywh(20% 50px 70px 100%)] at (2) should be [inset(90px calc(160% - 150px) calc(0% - 110px) calc(40% - 10px))]
Pass CSS Animations: property <clip-path> from [inherit] to [xywh(20% 50px 70px 100%)] at (-1) should be [inset(-30px calc(-80% + 90px) calc(0% + 70px) calc(-20% + 20px)]
Pass CSS Animations: property <clip-path> from [inherit] to [xywh(20% 50px 70px 100%)] at (0) should be [inset(10px calc(0% + 10px) calc(0% + 10px))]
Pass CSS Animations: property <clip-path> from [inherit] to [xywh(20% 50px 70px 100%)] at (0.125) should be [inset(15px 10% calc(0% + 2.5px) calc(2.5% + 8.75px))]
Fail CSS Animations: property <clip-path> from [inherit] to [xywh(20% 50px 70px 100%)] at (0.875) should be [inset(45px calc(70% - 60px) calc(0% - 42.5px) calc(17.5% + 1.25px))]
Fail CSS Animations: property <clip-path> from [inherit] to [xywh(20% 50px 70px 100%)] at (1) should be [inset(50px calc(80% - 70px) calc(0% - 50px) 20%)]
Fail CSS Animations: property <clip-path> from [inherit] to [xywh(20% 50px 70px 100%)] at (2) should be [inset(90px calc(160% - 150px) calc(0% - 110px) calc(40% - 10px))]
Pass Web Animations: property <clip-path> from [inherit] to [xywh(20% 50px 70px 100%)] at (-1) should be [inset(-30px calc(-80% + 90px) calc(0% + 70px) calc(-20% + 20px)]
Pass Web Animations: property <clip-path> from [inherit] to [xywh(20% 50px 70px 100%)] at (0) should be [inset(10px calc(0% + 10px) calc(0% + 10px))]
Pass Web Animations: property <clip-path> from [inherit] to [xywh(20% 50px 70px 100%)] at (0.125) should be [inset(15px 10% calc(0% + 2.5px) calc(2.5% + 8.75px))]
Fail Web Animations: property <clip-path> from [inherit] to [xywh(20% 50px 70px 100%)] at (0.875) should be [inset(45px calc(70% - 60px) calc(0% - 42.5px) calc(17.5% + 1.25px))]
Fail Web Animations: property <clip-path> from [inherit] to [xywh(20% 50px 70px 100%)] at (1) should be [inset(50px calc(80% - 70px) calc(0% - 50px) 20%)]
Fail Web Animations: property <clip-path> from [inherit] to [xywh(20% 50px 70px 100%)] at (2) should be [inset(90px calc(160% - 150px) calc(0% - 110px) calc(40% - 10px))]
Fail CSS Transitions: property <clip-path> from [inherit] to [rect(50px 70px 80% 20%)] at (-1) should be [inset(-30px calc(-100% + 90px) calc(-20% + 20px) calc(-20% + 20px)]
Fail CSS Transitions: property <clip-path> from [inherit] to [rect(50px 70px 80% 20%)] at (0) should be [inset(10px calc(0% + 10px) calc(0% + 10px))]
Fail CSS Transitions: property <clip-path> from [inherit] to [rect(50px 70px 80% 20%)] at (0.125) should be [inset(15px 12.5% calc(2.5% + 8.75px) calc(2.5% + 8.75px))]
Fail CSS Transitions: property <clip-path> from [inherit] to [rect(50px 70px 80% 20%)] at (0.875) should be [inset(45px calc(87.5% - 60px) calc(17.5% + 1.25px) calc(17.5% + 1.25px))]
Fail CSS Transitions: property <clip-path> from [inherit] to [rect(50px 70px 80% 20%)] at (1) should be [inset(50px calc(100% - 70px) 20% 20%)]
Fail CSS Transitions: property <clip-path> from [inherit] to [rect(50px 70px 80% 20%)] at (2) should be [inset(90px calc(200% - 150px) calc(40% - 10px) calc(40% - 10px))]
Fail CSS Transitions with transition: all: property <clip-path> from [inherit] to [rect(50px 70px 80% 20%)] at (-1) should be [inset(-30px calc(-100% + 90px) calc(-20% + 20px) calc(-20% + 20px)]
Fail CSS Transitions with transition: all: property <clip-path> from [inherit] to [rect(50px 70px 80% 20%)] at (0) should be [inset(10px calc(0% + 10px) calc(0% + 10px))]
Fail CSS Transitions with transition: all: property <clip-path> from [inherit] to [rect(50px 70px 80% 20%)] at (0.125) should be [inset(15px 12.5% calc(2.5% + 8.75px) calc(2.5% + 8.75px))]
Fail CSS Transitions with transition: all: property <clip-path> from [inherit] to [rect(50px 70px 80% 20%)] at (0.875) should be [inset(45px calc(87.5% - 60px) calc(17.5% + 1.25px) calc(17.5% + 1.25px))]
Fail CSS Transitions with transition: all: property <clip-path> from [inherit] to [rect(50px 70px 80% 20%)] at (1) should be [inset(50px calc(100% - 70px) 20% 20%)]
Fail CSS Transitions with transition: all: property <clip-path> from [inherit] to [rect(50px 70px 80% 20%)] at (2) should be [inset(90px calc(200% - 150px) calc(40% - 10px) calc(40% - 10px))]
Pass CSS Animations: property <clip-path> from [inherit] to [rect(50px 70px 80% 20%)] at (-1) should be [inset(-30px calc(-100% + 90px) calc(-20% + 20px) calc(-20% + 20px)]
Pass CSS Animations: property <clip-path> from [inherit] to [rect(50px 70px 80% 20%)] at (0) should be [inset(10px calc(0% + 10px) calc(0% + 10px))]
Pass CSS Animations: property <clip-path> from [inherit] to [rect(50px 70px 80% 20%)] at (0.125) should be [inset(15px 12.5% calc(2.5% + 8.75px) calc(2.5% + 8.75px))]
Fail CSS Animations: property <clip-path> from [inherit] to [rect(50px 70px 80% 20%)] at (0.875) should be [inset(45px calc(87.5% - 60px) calc(17.5% + 1.25px) calc(17.5% + 1.25px))]
Fail CSS Animations: property <clip-path> from [inherit] to [rect(50px 70px 80% 20%)] at (1) should be [inset(50px calc(100% - 70px) 20% 20%)]
Fail CSS Animations: property <clip-path> from [inherit] to [rect(50px 70px 80% 20%)] at (2) should be [inset(90px calc(200% - 150px) calc(40% - 10px) calc(40% - 10px))]
Pass Web Animations: property <clip-path> from [inherit] to [rect(50px 70px 80% 20%)] at (-1) should be [inset(-30px calc(-100% + 90px) calc(-20% + 20px) calc(-20% + 20px)]
Pass Web Animations: property <clip-path> from [inherit] to [rect(50px 70px 80% 20%)] at (0) should be [inset(10px calc(0% + 10px) calc(0% + 10px))]
Pass Web Animations: property <clip-path> from [inherit] to [rect(50px 70px 80% 20%)] at (0.125) should be [inset(15px 12.5% calc(2.5% + 8.75px) calc(2.5% + 8.75px))]
Fail Web Animations: property <clip-path> from [inherit] to [rect(50px 70px 80% 20%)] at (0.875) should be [inset(45px calc(87.5% - 60px) calc(17.5% + 1.25px) calc(17.5% + 1.25px))]
Fail Web Animations: property <clip-path> from [inherit] to [rect(50px 70px 80% 20%)] at (1) should be [inset(50px calc(100% - 70px) 20% 20%)]
Fail Web Animations: property <clip-path> from [inherit] to [rect(50px 70px 80% 20%)] at (2) should be [inset(90px calc(200% - 150px) calc(40% - 10px) calc(40% - 10px))]
Fail CSS Transitions: property <clip-path> from [xywh(0px 10% 100px 40% round 20px)] to [rect(20% 50% 200px 20px)] at (-1) should be [inset(0% calc(150% - 200px) calc(0% + 200px) -20px round 40px]
Fail CSS Transitions: property <clip-path> from [xywh(0px 10% 100px 40% round 20px)] to [rect(20% 50% 200px 20px)] at (0) should be [inset(10% calc(100% - 100px) 50% 0px round 20px)]
Fail CSS Transitions: property <clip-path> from [xywh(0px 10% 100px 40% round 20px)] to [rect(20% 50% 200px 20px)] at (0.125) should be [inset(11.25% calc(93.75% - 87.5px) calc(56.25% - 25px) 2.5px round 17.5px)]
Fail CSS Transitions: property <clip-path> from [xywh(0px 10% 100px 40% round 20px)] to [rect(20% 50% 200px 20px)] at (0.875) should be [inset(18.75% calc(56.25% - 12.5px) calc(93.75% - 175px) 17.5px round 2.5px)]
Fail CSS Transitions: property <clip-path> from [xywh(0px 10% 100px 40% round 20px)] to [rect(20% 50% 200px 20px)] at (1) should be [inset(20% 50% calc(100% - 200px) 20px)]
Fail CSS Transitions: property <clip-path> from [xywh(0px 10% 100px 40% round 20px)] to [rect(20% 50% 200px 20px)] at (2) should be [inset(30% calc(0% + 100px) calc(150% - 400px) 40px)]
Fail CSS Transitions with transition: all: property <clip-path> from [xywh(0px 10% 100px 40% round 20px)] to [rect(20% 50% 200px 20px)] at (-1) should be [inset(0% calc(150% - 200px) calc(0% + 200px) -20px round 40px]
Fail CSS Transitions with transition: all: property <clip-path> from [xywh(0px 10% 100px 40% round 20px)] to [rect(20% 50% 200px 20px)] at (0) should be [inset(10% calc(100% - 100px) 50% 0px round 20px)]
Fail CSS Transitions with transition: all: property <clip-path> from [xywh(0px 10% 100px 40% round 20px)] to [rect(20% 50% 200px 20px)] at (0.125) should be [inset(11.25% calc(93.75% - 87.5px) calc(56.25% - 25px) 2.5px round 17.5px)]
Fail CSS Transitions with transition: all: property <clip-path> from [xywh(0px 10% 100px 40% round 20px)] to [rect(20% 50% 200px 20px)] at (0.875) should be [inset(18.75% calc(56.25% - 12.5px) calc(93.75% - 175px) 17.5px round 2.5px)]
Fail CSS Transitions with transition: all: property <clip-path> from [xywh(0px 10% 100px 40% round 20px)] to [rect(20% 50% 200px 20px)] at (1) should be [inset(20% 50% calc(100% - 200px) 20px)]
Fail CSS Transitions with transition: all: property <clip-path> from [xywh(0px 10% 100px 40% round 20px)] to [rect(20% 50% 200px 20px)] at (2) should be [inset(30% calc(0% + 100px) calc(150% - 400px) 40px)]
Fail CSS Animations: property <clip-path> from [xywh(0px 10% 100px 40% round 20px)] to [rect(20% 50% 200px 20px)] at (-1) should be [inset(0% calc(150% - 200px) calc(0% + 200px) -20px round 40px]
Fail CSS Animations: property <clip-path> from [xywh(0px 10% 100px 40% round 20px)] to [rect(20% 50% 200px 20px)] at (0) should be [inset(10% calc(100% - 100px) 50% 0px round 20px)]
Fail CSS Animations: property <clip-path> from [xywh(0px 10% 100px 40% round 20px)] to [rect(20% 50% 200px 20px)] at (0.125) should be [inset(11.25% calc(93.75% - 87.5px) calc(56.25% - 25px) 2.5px round 17.5px)]
Fail CSS Animations: property <clip-path> from [xywh(0px 10% 100px 40% round 20px)] to [rect(20% 50% 200px 20px)] at (0.875) should be [inset(18.75% calc(56.25% - 12.5px) calc(93.75% - 175px) 17.5px round 2.5px)]
Fail CSS Animations: property <clip-path> from [xywh(0px 10% 100px 40% round 20px)] to [rect(20% 50% 200px 20px)] at (1) should be [inset(20% 50% calc(100% - 200px) 20px)]
Fail CSS Animations: property <clip-path> from [xywh(0px 10% 100px 40% round 20px)] to [rect(20% 50% 200px 20px)] at (2) should be [inset(30% calc(0% + 100px) calc(150% - 400px) 40px)]
Fail Web Animations: property <clip-path> from [xywh(0px 10% 100px 40% round 20px)] to [rect(20% 50% 200px 20px)] at (-1) should be [inset(0% calc(150% - 200px) calc(0% + 200px) -20px round 40px]
Fail Web Animations: property <clip-path> from [xywh(0px 10% 100px 40% round 20px)] to [rect(20% 50% 200px 20px)] at (0) should be [inset(10% calc(100% - 100px) 50% 0px round 20px)]
Fail Web Animations: property <clip-path> from [xywh(0px 10% 100px 40% round 20px)] to [rect(20% 50% 200px 20px)] at (0.125) should be [inset(11.25% calc(93.75% - 87.5px) calc(56.25% - 25px) 2.5px round 17.5px)]
Fail Web Animations: property <clip-path> from [xywh(0px 10% 100px 40% round 20px)] to [rect(20% 50% 200px 20px)] at (0.875) should be [inset(18.75% calc(56.25% - 12.5px) calc(93.75% - 175px) 17.5px round 2.5px)]
Fail Web Animations: property <clip-path> from [xywh(0px 10% 100px 40% round 20px)] to [rect(20% 50% 200px 20px)] at (1) should be [inset(20% 50% calc(100% - 200px) 20px)]
Fail Web Animations: property <clip-path> from [xywh(0px 10% 100px 40% round 20px)] to [rect(20% 50% 200px 20px)] at (2) should be [inset(30% calc(0% + 100px) calc(150% - 400px) 40px)]

View file

@ -0,0 +1,169 @@
<!DOCTYPE html>
<meta charset="UTF-8">
<title>clip-path-interpolation for basic-shape-rect, xywh and rect</title>
<link rel="help" href="https://drafts.fxtf.org/css-masking-1/#the-clip-path">
<link rel="help" href="https://drafts.csswg.org/css-shapes-1/#funcdef-basic-shape-xywh">
<link rel="help" href="https://drafts.csswg.org/css-shapes-1/#funcdef-basic-shape-rect">
<meta name="assert" content="clip-path supports animation for xywh() and rect()">
<script src="../../../resources/testharness.js"></script>
<script src="../../../resources/testharnessreport.js"></script>
<script src="../../../css/support/interpolation-testcommon.js"></script>
<style>
.parent {
clip-path: inset(10px);
padding: 10px;
}
.target {
display: inline-block;
width: 100px;
height: 100px;
background-color: black;
clip-path: inset(10px);
}
.expected {
background-color: green;
}
</style>
<body>
<script>
test_no_interpolation({
property: 'clip-path',
from: 'initial',
to: 'xywh(10px 10px 100px 100px)',
});
test_no_interpolation({
property: 'clip-path',
from: 'unset',
to: 'xywh(10px 10px 100px 100px)',
});
test_no_interpolation({
property: 'clip-path',
from: 'initial',
to: 'rect(10px 100px 100px 10px)',
});
test_no_interpolation({
property: 'clip-path',
from: 'unset',
to: 'rect(10px 100px 100px 10px)',
});
// Note: it's fine to use "rect()"/"xywh()" in "expect" because we always
// convert it into `inset()` when we compare it with the actual animation value.
test_interpolation({
property: 'clip-path',
from: 'xywh(5px 5px 150% 150%)',
to: 'xywh(10px 10px 100% 100%)'
}, [
{at: -1, expect: 'xywh(0px 0px 200% 200%)'},
{at: 0, expect: 'xywh(5px 5px 150% 150%)'},
{at: 0.125, expect: 'xywh(5.63px 5.63px 143.75% 143.75%)'},
{at: 0.875, expect: 'xywh(9.38px 9.38px 106.25% 106.25%)'},
{at: 1, expect: 'xywh(10px 10px 100% 100%)'},
{at: 2, expect: 'xywh(15px 15px 50% 50%)'},
]);
test_interpolation({
property: 'clip-path',
from: 'rect(10px 100px 50% 10%)',
to: 'rect(50px 200px 90% 50%)'
}, [
{at: -1, expect: 'rect(-30px 0px 10% -30%)'},
{at: 0, expect: 'rect(10px 100px 50% 10%)'},
{at: 0.125, expect: 'rect(15px 112.5px 55% 15%)'},
{at: 0.875, expect: 'rect(45px 187.5px 85% 45%)'},
{at: 1, expect: 'rect(50px 200px 90% 50%)'},
{at: 2, expect: 'rect(90px 300px 130% 90%)'},
]);
test_interpolation({
property: 'clip-path',
from: 'rect(auto auto auto auto)',
to: 'rect(80% 20% 20% 80%)'
}, [
{at: -1, expect: 'inset(-80%)'},
{at: 0, expect: 'inset(0%)'},
{at: 0.125, expect: 'inset(10%)'},
{at: 0.875, expect: 'inset(70%)'},
{at: 1, expect: 'inset(80%)'},
{at: 2, expect: 'inset(160%)'},
]);
// All <basic-shape-rect>s compute to the equivalent inset() function, so they
// interpolatable.
// https://drafts.csswg.org/css-shapes-1/#basic-shape-computed-values
test_interpolation({
property: 'clip-path',
from: neutralKeyframe,
// inset(50px calc(80% - 70px) calc(0% - 50px) 20%).
to: 'xywh(20% 50px 70px 100%)',
}, [
{at: -1, expect: 'inset(-30px calc(-80% + 90px) calc(0% + 70px) calc(-20% + 20px)'},
{at: 0, expect: 'inset(10px calc(0% + 10px) calc(0% + 10px))'},
{at: 0.125, expect: 'inset(15px 10% calc(0% + 2.5px) calc(2.5% + 8.75px))'},
{at: 0.875, expect: 'inset(45px calc(70% - 60px) calc(0% - 42.5px) calc(17.5% + 1.25px))'},
{at: 1, expect: 'inset(50px calc(80% - 70px) calc(0% - 50px) 20%)'},
{at: 2, expect: 'inset(90px calc(160% - 150px) calc(0% - 110px) calc(40% - 10px))'},
]);
test_interpolation({
property: 'clip-path',
from: neutralKeyframe,
// inset(50px calc(100% - 70px) 20% 20%).
to: 'rect(50px 70px 80% 20%)',
}, [
{at: -1, expect: 'inset(-30px calc(-100% + 90px) calc(-20% + 20px) calc(-20% + 20px)'},
{at: 0, expect: 'inset(10px calc(0% + 10px) calc(0% + 10px))'},
{at: 0.125, expect: 'inset(15px 12.5% calc(2.5% + 8.75px) calc(2.5% + 8.75px))'},
{at: 0.875, expect: 'inset(45px calc(87.5% - 60px) calc(17.5% + 1.25px) calc(17.5% + 1.25px))'},
{at: 1, expect: 'inset(50px calc(100% - 70px) 20% 20%)'},
{at: 2, expect: 'inset(90px calc(200% - 150px) calc(40% - 10px) calc(40% - 10px))'},
]);
test_interpolation({
property: 'clip-path',
from: 'inherit',
to: 'xywh(20% 50px 70px 100%)',
}, [
{at: -1, expect: 'inset(-30px calc(-80% + 90px) calc(0% + 70px) calc(-20% + 20px)'},
{at: 0, expect: 'inset(10px calc(0% + 10px) calc(0% + 10px))'},
{at: 0.125, expect: 'inset(15px 10% calc(0% + 2.5px) calc(2.5% + 8.75px))'},
{at: 0.875, expect: 'inset(45px calc(70% - 60px) calc(0% - 42.5px) calc(17.5% + 1.25px))'},
{at: 1, expect: 'inset(50px calc(80% - 70px) calc(0% - 50px) 20%)'},
{at: 2, expect: 'inset(90px calc(160% - 150px) calc(0% - 110px) calc(40% - 10px))'},
]);
test_interpolation({
property: 'clip-path',
from: 'inherit',
to: 'rect(50px 70px 80% 20%)',
}, [
{at: -1, expect: 'inset(-30px calc(-100% + 90px) calc(-20% + 20px) calc(-20% + 20px)'},
{at: 0, expect: 'inset(10px calc(0% + 10px) calc(0% + 10px))'},
{at: 0.125, expect: 'inset(15px 12.5% calc(2.5% + 8.75px) calc(2.5% + 8.75px))'},
{at: 0.875, expect: 'inset(45px calc(87.5% - 60px) calc(17.5% + 1.25px) calc(17.5% + 1.25px))'},
{at: 1, expect: 'inset(50px calc(100% - 70px) 20% 20%)'},
{at: 2, expect: 'inset(90px calc(200% - 150px) calc(40% - 10px) calc(40% - 10px))'},
]);
test_interpolation({
property: 'clip-path',
from: 'xywh(0px 10% 100px 40% round 20px)',
to: 'rect(20% 50% 200px 20px)',
}, [
{at: -1, expect: 'inset(0% calc(150% - 200px) calc(0% + 200px) -20px round 40px'},
{at: 0, expect: 'inset(10% calc(100% - 100px) 50% 0px round 20px)'},
{at: 0.125, expect: 'inset(11.25% calc(93.75% - 87.5px) calc(56.25% - 25px) 2.5px round 17.5px)'},
{at: 0.875, expect: 'inset(18.75% calc(56.25% - 12.5px) calc(93.75% - 175px) 17.5px round 2.5px)'},
{at: 1, expect: 'inset(20% 50% calc(100% - 200px) 20px)'},
{at: 2, expect: 'inset(30% calc(0% + 100px) calc(150% - 400px) 40px)'},
]);
</script>
</body>