mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 10:07:15 +02:00
LibWeb: Make transition order consider property name
class_specific_composite_order() also has no reason to return an Optional<int>, since it can just return 0.
This commit is contained in:
committed by
Jelle Raaijmakers
parent
1df94c4513
commit
2c4f2a3cb6
Notes:
github-actions[bot]
2025-11-11 12:48:13 +00:00
Author: https://github.com/Psychpsyo Commit: https://github.com/LadybirdBrowser/ladybird/commit/2c4f2a3cb62 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6789 Reviewed-by: https://github.com/gmta ✅
23
Tests/LibWeb/Text/input/css/transition-ordering.html
Normal file
23
Tests/LibWeb/Text/input/css/transition-ordering.html
Normal file
@@ -0,0 +1,23 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<style>
|
||||
#foo {
|
||||
transition-property: top, left, right;
|
||||
transition-duration: 1s;
|
||||
}
|
||||
</style>
|
||||
<div id="foo" style="top: 0; left: 0; right: 0"></div>
|
||||
<script src="../include.js"></script>
|
||||
<script>
|
||||
promiseTest(async () => {
|
||||
await animationFrame();
|
||||
await animationFrame();
|
||||
|
||||
foo.style.left = "10px";
|
||||
foo.style.top = "10px";
|
||||
foo.style.right = "10px";
|
||||
|
||||
println("Order: " + document.getAnimations().map(animation => animation.transitionProperty).join(", "));
|
||||
});
|
||||
</script>
|
||||
</html>
|
||||
Reference in New Issue
Block a user