From eb77e680ed615e9daf5b165359b4a45541b4e6f3 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 20 Oct 2019 12:30:25 +0200 Subject: 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. :^) --- Libraries/LibHTML/CSS/StyleValue.h | 1 + 1 file changed, 1 insertion(+) (limited to 'Libraries/LibHTML/CSS/StyleValue.h') 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, }; } -- cgit v1.2.3