1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 15:07:45 +00:00

LibWeb: Use the auto table width formula if it cannot be resolved

If the width is a percentage but the parent isn't resolved yet, take the
same path as for auto width.
This commit is contained in:
Andi Gallo 2023-08-15 03:14:32 +00:00 committed by Alexander Kalenik
parent 3a8e362ab0
commit d5f54956ba
3 changed files with 59 additions and 2 deletions

View file

@ -0,0 +1,15 @@
<style>
.grid_layout {
display: grid;
grid-template: min-content / minmax(0, 200px);
}
.outer {
border: 1px solid black;
width: 100%;
}
.inner {
width: 100%;
}
</style><div class="grid_layout"><div><table class="outer"><tr><td><table class="inner"><tr><td>A A</td></tr></table></td></tr></table></div></div>