diff options
author | Jack Byrne <37118912+jgbyrne@users.noreply.github.com> | 2020-05-24 08:49:02 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-24 09:49:02 +0200 |
commit | 58480a510fee0d632b7cb4caa51fbce6a52f2aa0 (patch) | |
tree | ae672c3c68fd664d979952546521b4b905bf980f /Libraries/LibWeb/Layout/LayoutTreeBuilder.h | |
parent | 3f2158bbfea85f70cbe5725f58aa69b8ca6fca11 (diff) | |
download | serenity-58480a510fee0d632b7cb4caa51fbce6a52f2aa0.zip |
LibWeb: Improve support for white-space CSS property (#2348)
Add reasonable support for all values of white-space CSS property.
Values of the property are translated into a 3-tuple of rules:
do_collapse: whether whitespace is to be collapsed
do_wrap_lines: whether to wrap on word boundaries when
lines get too long
do_wrap_breaks: whether to wrap on linebreaks
The previously separate handling of per-line splitting and per-word
splitting have been unified. The Word structure is now a more
general Chunk, which represents different amounts of text depending
on splitting rules.
Diffstat (limited to 'Libraries/LibWeb/Layout/LayoutTreeBuilder.h')
0 files changed, 0 insertions, 0 deletions