mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 17:55:07 +02:00
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()`
32 lines
637 B
HTML
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>
|