diff options
author | Andreas Kling <kling@serenityos.org> | 2022-10-03 23:37:38 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-10-03 23:49:23 +0200 |
commit | b13a8706e143368d769a408b2a992c991b94abf4 (patch) | |
tree | 425c9f615f01abe88dfb85948e9eca24e8b8c5d1 /Userland/Libraries/LibWeb/Page | |
parent | b4f9db84ca397fd39c281c42ad001c070d24459e (diff) | |
download | serenity-b13a8706e143368d769a408b2a992c991b94abf4.zip |
LibWeb: Make intrinsic heights dependent on available width
After speaking with fantasai at CSSWG about this, it turns out I had
misunderstood intrinsic heights. I originally believed all intrinsic
sizes had to be computed with no influence from the surrounding context.
As it turns out, intrinsic heights *are* influenced by the available
width, since it's needed to determine where lines break.
The APIs for calculating min-content and max-content heights now take
the available width as inputs. This instantly improves layout in many
cases where we'd previously make things way too wide.
Diffstat (limited to 'Userland/Libraries/LibWeb/Page')
0 files changed, 0 insertions, 0 deletions