diff options
author | Martin Robinson <mrobinson@igalia.com> | 2023-06-28 10:07:08 +0200 |
---|---|---|
committer | Martin Robinson <mrobinson@igalia.com> | 2023-07-06 14:49:24 +0200 |
commit | d31cdb682f717d6dbdbd57d60855fd92d822cd66 (patch) | |
tree | 6dbb0c6007b545835a119bdf8e78cb5a665afa34 /components/layout_2020/flow/inline.rs | |
parent | f11c6045e33a921f03223c313781586189309bd2 (diff) | |
download | servo-d31cdb682f717d6dbdbd57d60855fd92d822cd66.tar.gz servo-d31cdb682f717d6dbdbd57d60855fd92d822cd66.zip |
Make the choice of layout runtime setting
Co-authored-by: Samson <16504129+sagudev@users.noreply.github.com>
Diffstat (limited to 'components/layout_2020/flow/inline.rs')
-rw-r--r-- | components/layout_2020/flow/inline.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/components/layout_2020/flow/inline.rs b/components/layout_2020/flow/inline.rs index 045d5aaceba..c274e615042 100644 --- a/components/layout_2020/flow/inline.rs +++ b/components/layout_2020/flow/inline.rs @@ -473,6 +473,16 @@ impl Lines { TextAlign::Start } }, + TextAlignKeyword::Justify => { + // TODO: Add support for justfied text. + TextAlign::Start + }, + TextAlignKeyword::ServoCenter | + TextAlignKeyword::ServoLeft | + TextAlignKeyword::ServoRight => { + // TODO: Implement these modes which seem to be used by quirks mode. + TextAlign::Start + }, }; let move_by = match text_align { TextAlign::Start => Length::zero(), |