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:
Callum Law
2025-09-11 15:47:41 +12:00
committed by Tim Ledbetter
parent 6453c2cf71
commit af431d800b
Notes: github-actions[bot] 2025-09-11 05:09:22 +00:00
10 changed files with 247 additions and 0 deletions

View File

@@ -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>