diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-10-20 12:30:25 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-10-20 12:55:55 +0200 |
commit | eb77e680ed615e9daf5b165359b4a45541b4e6f3 (patch) | |
tree | 1b3ea745b0afc8d9786e1ecba14bbf0747d2f309 /Libraries/LibHTML/CSS/StyleValue.h | |
parent | ea5da0f9b5f515eae12a286ba50c3fbe3cb130e7 (diff) | |
download | serenity-eb77e680ed615e9daf5b165359b4a45541b4e6f3.zip |
LibHTML: Implement "text-align: justify"
In order for this to work nicely, I made the line box classes use float
instead of int for its geometry information.
Justification works by distributing all of the whitespace on the line
(including the trailing whitespace before the line break) evenly across
the spaces in-between words.
We should probably use floating point (or maybe fixed point?) for all
the layout metrics stuff. But one thing at a time. :^)
Diffstat (limited to 'Libraries/LibHTML/CSS/StyleValue.h')
-rw-r--r-- | Libraries/LibHTML/CSS/StyleValue.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Libraries/LibHTML/CSS/StyleValue.h b/Libraries/LibHTML/CSS/StyleValue.h index 53420123a3..02c66d724c 100644 --- a/Libraries/LibHTML/CSS/StyleValue.h +++ b/Libraries/LibHTML/CSS/StyleValue.h @@ -20,6 +20,7 @@ enum class ValueID { Center, Left, Right, + Justify, }; } |