diff options
author | Andreas Kling <kling@serenityos.org> | 2023-05-15 16:42:28 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-05-15 19:31:09 +0200 |
commit | 5d4e9a0673bd3a35495ced6ece8404d55105f101 (patch) | |
tree | 4453d60568f14a2e8b984f5d278fb03179de0244 /Userland/Libraries/LibWeb/Layout/LineBuilder.h | |
parent | 9c2d496dbe1c0aa2c91e30e00bebca47c4a568fa (diff) | |
download | serenity-5d4e9a0673bd3a35495ced6ece8404d55105f101.zip |
LibWeb: Basic support for CSS `text-indent: <length-percentage>`
Note that this simple form of text-indent only affects the first line
of formatted content in each block.
Percentages are resolved against the width of the block.
Diffstat (limited to 'Userland/Libraries/LibWeb/Layout/LineBuilder.h')
-rw-r--r-- | Userland/Libraries/LibWeb/Layout/LineBuilder.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/Layout/LineBuilder.h b/Userland/Libraries/LibWeb/Layout/LineBuilder.h index 5d07a86c3e..35964764d9 100644 --- a/Userland/Libraries/LibWeb/Layout/LineBuilder.h +++ b/Userland/Libraries/LibWeb/Layout/LineBuilder.h @@ -57,6 +57,7 @@ private: CSSPixels m_available_width_for_current_line { 0 }; CSSPixels m_current_y { 0 }; CSSPixels m_max_height_on_current_line { 0 }; + CSSPixels m_text_indent { 0 }; bool m_last_line_needs_update { false }; }; |