mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Make the choice of layout runtime setting
Co-authored-by: Samson <16504129+sagudev@users.noreply.github.com>
This commit is contained in:
parent
f11c6045e3
commit
d31cdb682f
262 changed files with 1740 additions and 3700 deletions
|
@ -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(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue