mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-28 02:27:19 +02:00
On style update, we have to preserve the invariant established when we built the layout tree - some properties are applied to the table wrapper and the table box values are reset to their initial values. This also ensures that the containing block of a table box is always a table wrapper, which isn't the case if we set absolute position on the box instead of the wrapper. Fixes #19452.
12 lines
205 B
HTML
12 lines
205 B
HTML
<table id="t">
|
|
<tr>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
|
|
<script>
|
|
t = document.querySelector("#t");
|
|
console.log(t);
|
|
t.style.position = "absolute";
|
|
window.getComputedStyle(t);
|
|
</script> |