Files
ladybird/Tests/LibWeb/Text/input/css/inherited-animated-values-overwriting-non-inherited.html
Callum Law 9d49fcc87b LibWeb: Dont overwrite animated values in recompute_inherited_style
Previously we assumed that if the non-animated value was inherited then
the animated value must be also which is not true.
2025-11-28 16:15:49 +00:00

42 lines
918 B
HTML

<!DOCTYPE html>
<html>
<style>
@keyframes fooAnim {
from,
to {
color: red;
}
}
#foo {
animation: fooAnim 1s infinite;
}
@keyframes barAnim {
from,
to {
color: green;
}
}
#bar {
animation: barAnim 1s infinite;
}
</style>
<div id="foo"><div id="bar"></div></div>
<script src="../include.js"></script>
<script>
asyncTest(done => {
requestAnimationFrame(() => {
requestAnimationFrame(() => {
// Trigger recomputation of inherited style for #bar
foo.style.fontSize = "20px";
println(getComputedStyle(bar).color);
done();
});
});
});
</script>
</html>