mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Add basic support for text-align: justify
(#30807)
This also enables parsing of `text-justify` for non-legacy layout, though only None is supported (disabling justification).
This commit is contained in:
parent
0be30b30ce
commit
ccf0b739df
18 changed files with 154 additions and 417 deletions
|
@ -85,8 +85,12 @@ pub(crate) struct TextFragment {
|
|||
#[serde(skip_serializing)]
|
||||
pub font_key: FontInstanceKey,
|
||||
pub glyphs: Vec<Arc<GlyphStore>>,
|
||||
|
||||
/// A flag that represents the _used_ value of the text-decoration property.
|
||||
pub text_decoration_line: TextDecorationLine,
|
||||
|
||||
/// Extra space to add for each justification opportunity.
|
||||
pub justification_adjustment: Length,
|
||||
}
|
||||
|
||||
#[derive(Serialize)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue