Automatic update from web-platform-tests Fix division by zero in clip path paint definition Two keyframes can have the same offset. When that happens, there's no need to interpolate between them. Bug: 493534964 Change-Id: I6f57a4049c4651c8a2c44cf88509d59569e666d6 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7792295 Reviewed-by: Kevin Ellis <kevers@chromium.org> Commit-Queue: Robert Flack <flackr@chromium.org> Cr-Commit-Position: refs/heads/main@{#1621327} -- wpt-commits: 604369f014c9941f9e416069b278d8ca3b76f863 wpt-pr: 59500
26 lines
664 B
HTML
26 lines
664 B
HTML
<!DOCTYPE html>
|
|
<html class="test-wait">
|
|
<title>CSS Easing: linear() duplicate points crash</title>
|
|
<link rel="help" href="https://crbug.com/493534964">
|
|
<style>
|
|
div {
|
|
width: 100px;
|
|
height: 100px;
|
|
background: red;
|
|
animation: anim 1s both;
|
|
}
|
|
@keyframes anim {
|
|
0% { clip-path: inset(0%); }
|
|
50% { clip-path: inset(10%); animation-timing-function: linear(0 0%, 1 100%, 0 100%); }
|
|
50% { clip-path: inset(20%); }
|
|
100% { clip-path: inset(30%); }
|
|
}
|
|
</style>
|
|
<div></div>
|
|
<script>
|
|
document.querySelector('div').getAnimations()[0].ready.then(() => {
|
|
document.documentElement.classList.remove('test-wait');
|
|
});
|
|
</script>
|
|
</html>
|