diff options
author | Andreas Kling <kling@serenityos.org> | 2020-12-05 20:10:39 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-12-05 22:51:03 +0100 |
commit | 615a4d4f71db0750313ae8ac1494e65f67f25b31 (patch) | |
tree | 56547106c593617d5d517402056655643b3326f2 /Libraries/LibWeb/HTML/HTMLFieldSetElement.idl | |
parent | 11256de366eb7d882e91ac46bcc535511d54fdde (diff) | |
download | serenity-615a4d4f71db0750313ae8ac1494e65f67f25b31.zip |
LibWeb: First slightly naive implementation of CSS floats :^)
Boxes can now be floated left or right, which makes text within the
same block formatting context flow around them.
We were creating way too many block formatting contexts. As it turns
out, we don't need one for every new block, but rather there's a set
of rules that determines whether a given block creates a new block
formatting context.
Each BFC keeps track of the floating boxes within it, and IFC's can
then query it to find the available space for line boxes.
There's a huge hack in here where we assume all lines are the exact
line-height. Making this work with vertically non-uniform lines will
require some architectural changes.
Diffstat (limited to 'Libraries/LibWeb/HTML/HTMLFieldSetElement.idl')
0 files changed, 0 insertions, 0 deletions