mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-03 04:52:06 +02:00
Tests: Import/create tests related to transition property handling
Done in a distinct commit to see progress over following commits
This commit is contained in:
committed by
Tim Ledbetter
parent
6453c2cf71
commit
af431d800b
Notes:
github-actions[bot]
2025-09-11 05:09:22 +00:00
Author: https://github.com/Calme1709 Commit: https://github.com/LadybirdBrowser/ladybird/commit/af431d800b0 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6161 Reviewed-by: https://github.com/tcl3 ✅
@@ -0,0 +1,22 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<style>
|
||||
#foo {
|
||||
transition: border 1s linear;
|
||||
border-top: 1px solid red;
|
||||
}
|
||||
</style>
|
||||
<div id="foo"></div>
|
||||
<script src="../include.js"></script>
|
||||
<script>
|
||||
test(() => {
|
||||
// FIXME: We call getComputedStyle to ensure that style is computed before we update the style attribute
|
||||
// below to ensure that transitions are triggered.
|
||||
getComputedStyle(foo).border;
|
||||
|
||||
foo.style = "border-top-width: 5px";
|
||||
|
||||
println(document.getAnimations().length);
|
||||
});
|
||||
</script>
|
||||
</html>
|
||||
Reference in New Issue
Block a user