Files
ladybird/Tests/LibWeb/Text/input/css/transition-ordering.html
Psychpsyo e0b5bd7894 LibWeb: Make transition order return -1 and 1 instead of 0 and 1
The old behavior was plain incorrect for a sorting function.
2025-11-11 21:57:47 +01:00

27 lines
816 B
HTML

<!DOCTYPE html>
<html>
<style>
#foo {
transition-property: top, right, left, width, height, bottom;
transition-duration: 1s;
}
</style>
<div id="foo" style="top: 0; left: 0; right: 0; width: 0; height: 0; bottom: 0"></div>
<script src="../include.js"></script>
<script>
promiseTest(async () => {
await animationFrame();
await animationFrame();
foo.style.top = "10px";
foo.style.right = "10px";
foo.style.left = "10px";
foo.style.width = "10px";
foo.style.height = "10px";
foo.style.bottom = "10px";
println("Order: " + document.getAnimations().map(animation => animation.transitionProperty).join(", "));
});
</script>
</html>