diff options
author | Andreas Kling <kling@serenityos.org> | 2022-02-19 17:34:05 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-02-21 18:35:12 +0100 |
commit | 9c05639d35d51f17397751ce3c5b4e7999a93ba4 (patch) | |
tree | 636f4359c65635cc16ffa592ed88dbcf772192a9 /Userland/Libraries/LibGemini | |
parent | c9c55d86a446df4fc11641f0bb7cae1346a9410a (diff) | |
download | serenity-9c05639d35d51f17397751ce3c5b4e7999a93ba4.zip |
LibWeb: Assign correct viewport dimensions when making style for ICB
The ICB (initial containing block) gets its style from StyleComputer's
create_document_style(). It's basically a generic style for the root of
the layout tree.
With this patch, we now assign the width and height of the viewport rect
as two CSS "px" lengths to the "width" and "height" properties of the
ICB style. (Previously they were just defaulting to "auto" and we
assigned override dimensions during layout.)
This fixes an issue where position:absolute elements with relative width
and/or height were not dimensioned correctly, since the values were
relative to the width and/or height of the ICB style.
Diffstat (limited to 'Userland/Libraries/LibGemini')
0 files changed, 0 insertions, 0 deletions