mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
style: Implement the break-spaces value of the white-space property.
Differential Revision: https://phabricator.services.mozilla.com/D34499
This commit is contained in:
parent
8b0d2b1e38
commit
05633886ab
1 changed files with 7 additions and 4 deletions
|
@ -175,7 +175,7 @@ ${helpers.predefined_type(
|
|||
|
||||
<%helpers:single_keyword
|
||||
name="white-space"
|
||||
values="normal pre nowrap pre-wrap pre-line"
|
||||
values="normal pre nowrap pre-wrap pre-line break-spaces"
|
||||
extra_gecko_values="-moz-pre-space"
|
||||
gecko_enum_prefix="StyleWhiteSpace"
|
||||
needs_conversion="True"
|
||||
|
@ -193,7 +193,8 @@ ${helpers.predefined_type(
|
|||
SpecifiedValue::Pre => false,
|
||||
SpecifiedValue::Normal |
|
||||
SpecifiedValue::PreWrap |
|
||||
SpecifiedValue::PreLine => true,
|
||||
SpecifiedValue::PreLine |
|
||||
SpecifiedValue::BreakSpaces => true,
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -203,7 +204,8 @@ ${helpers.predefined_type(
|
|||
SpecifiedValue::Nowrap => false,
|
||||
SpecifiedValue::Pre |
|
||||
SpecifiedValue::PreWrap |
|
||||
SpecifiedValue::PreLine => true,
|
||||
SpecifiedValue::PreLine |
|
||||
SpecifiedValue::BreakSpaces => true,
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -213,7 +215,8 @@ ${helpers.predefined_type(
|
|||
SpecifiedValue::Nowrap |
|
||||
SpecifiedValue::PreLine => false,
|
||||
SpecifiedValue::Pre |
|
||||
SpecifiedValue::PreWrap => true,
|
||||
SpecifiedValue::PreWrap |
|
||||
SpecifiedValue::BreakSpaces => true,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue