mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 09:45:06 +02:00
42 lines
941 B
HTML
42 lines
941 B
HTML
<!doctype html>
|
|
<style>
|
|
iframe {
|
|
width: 50px;
|
|
height: 0px;
|
|
}
|
|
</style>
|
|
<iframe
|
|
id="iframe"
|
|
srcdoc="
|
|
<div id=target></div>
|
|
<style>
|
|
#target {
|
|
order: calc(100vh / 1px);
|
|
}
|
|
</style>
|
|
"
|
|
></iframe>
|
|
|
|
<script src="../include.js"></script>
|
|
<script>
|
|
asyncTest(async done => {
|
|
if (iframe.contentDocument?.readyState !== "complete")
|
|
await new Promise(resolve => iframe.addEventListener("load", resolve));
|
|
|
|
requestAnimationFrame(() => {
|
|
requestAnimationFrame(() => {
|
|
const target = iframe.contentDocument.querySelector("#target");
|
|
|
|
println(getComputedStyle(target).order);
|
|
|
|
for (let height of [1, 2, 3]) {
|
|
iframe.style.height = `${height}px`;
|
|
println(getComputedStyle(target).order);
|
|
}
|
|
|
|
done();
|
|
});
|
|
});
|
|
});
|
|
</script>
|