mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:07:36 +00:00
LibWeb/Tests: Better trigger for table style update test
This commit is contained in:
parent
8b668da9d5
commit
fc45831fb3
2 changed files with 9 additions and 10 deletions
|
@ -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>
|
Loading…
Add table
Add a link
Reference in a new issue