From adba83834db9632c2bc91313529277926a228bae Mon Sep 17 00:00:00 2001 From: Jaro Date: Fri, 9 Jun 2023 23:50:23 +0200 Subject: [PATCH] Fix terminology for box layout bounds. --- src/Data/Text/ParagraphLayout/Internal/Fragment.hs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Data/Text/ParagraphLayout/Internal/Fragment.hs b/src/Data/Text/ParagraphLayout/Internal/Fragment.hs index 1b67537..1b6a50e 100644 --- a/src/Data/Text/ParagraphLayout/Internal/Fragment.hs +++ b/src/Data/Text/ParagraphLayout/Internal/Fragment.hs @@ -52,7 +52,12 @@ data Fragment d = Fragment -- -- The origin coordinates are relative to the paragraph. -- - -- This is the CSS equivalent of /content box/, before adding box spacing. + -- The vertical extent of this rectangle is the equivalent of + -- /layout bounds/ defined by CSS. + -- + -- Box spacing is not included. + -- + -- TODO: Define content box. , fragmentPen :: (Int32, Int32) -- ^ Coordinates of the initial pen position, from which the first glyph -- 2.30.2