LibWeb/Tests: Better trigger for table style update test

This commit is contained in:
Andi Gallo 2023-06-22 12:22:29 +00:00 committed by Andreas Kling
parent 8b668da9d5
commit fc45831fb3
Notes: sideshowbarker 2024-07-17 20:22:04 +09:00
2 changed files with 9 additions and 10 deletions

View file

@ -14,5 +14,3 @@ Viewport <#document> at (0,0) content-size 800x600 children: not-inline
TextNode <#text>
BlockContainer <(anonymous)> (not painted) children: inline
TextNode <#text>
BlockContainer <(anonymous)> at (8,8) content-size 784x0 children: inline
TextNode <#text>

View file

@ -1,12 +1,13 @@
<script>
document.addEventListener("DOMContentLoaded", function () {
let t = document.querySelector("#t");
t.style.position = "absolute";
window.getComputedStyle(t).position;
}, false);
</script>
<table id="t">
<tr>
<td></td>
</tr>
</table>
<script>
t = document.querySelector("#t");
console.log(t);
t.style.position = "absolute";
window.getComputedStyle(t);
</script>
</table>