Files
ladybird/Tests/LibWeb/Text/input/css/pending-layout-changes-parent-get-animations.html
Callum Law 56e2ac8a9d LibWeb: Always do parent document layout updates before updating style
We were doing this manually within `Document::update_layout()` and
`CSSStyleProperties::get_direct_property()` but we should do it for all
callers of `Document::update_style()`
2025-11-02 23:54:00 +01:00

32 lines
637 B
HTML

<!DOCTYPE html>
<html>
<iframe
width="499"
id="frame"
srcdoc="
<!DOCTYPE html>
<html>
<style>
@keyframes foo {}
@media (width >= 500px) {
#bar {
animation: foo 1s;
}
}
</style>
<div id='bar'></div>
</html>
"
></iframe>
<script src="../include.js"></script>
<script>
promiseTest(async () => {
await new Promise(resolve => window.addEventListener("load", resolve));
frame.width = "500";
println(frame.contentDocument.getAnimations().length);
});
</script>
</html>