1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-10 18:10:56 +09:00
ladybird/Tests/LibWeb/Text/input/css/changing-animation-name-crash.html
2025-03-20 11:50:49 +01:00

21 lines
600 B
HTML

<!DOCTYPE html>
<style>
#foo {
animation-name: rule1;
}
@keyframes rule1 { }
@keyframes rule2 { }
</style>
<div id="foo"></div>
<script src="../include.js"></script>
<script>
asyncTest(done => {
const foo = document.getElementById("foo");
println(`before: ${getComputedStyle(foo).getPropertyValue("animation-name")}`);
foo.style.setProperty("animation-name", "rule2");
requestAnimationFrame(() => {
println(`after: ${getComputedStyle(foo).getPropertyValue("animation-name")}`);
done();
});
});
</script>