mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 11:57:35 +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
|
@ -14,5 +14,3 @@ Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
||||||
TextNode <#text>
|
TextNode <#text>
|
||||||
BlockContainer <(anonymous)> (not painted) children: inline
|
BlockContainer <(anonymous)> (not painted) children: inline
|
||||||
TextNode <#text>
|
TextNode <#text>
|
||||||
BlockContainer <(anonymous)> at (8,8) content-size 784x0 children: inline
|
|
||||||
TextNode <#text>
|
|
||||||
|
|
|
@ -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">
|
<table id="t">
|
||||||
<tr>
|
<tr>
|
||||||
<td></td>
|
<td></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<script>
|
|
||||||
t = document.querySelector("#t");
|
|
||||||
console.log(t);
|
|
||||||
t.style.position = "absolute";
|
|
||||||
window.getComputedStyle(t);
|
|
||||||
</script>
|
|
Loading…
Add table
Add a link
Reference in a new issue