mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
style: Make word-break: break-word behave like word-break: normal; overflow-wrap: anywhere.
Differential Revision: https://phabricator.services.mozilla.com/D21398
This commit is contained in:
parent
7d01114cbf
commit
9e0d38a64f
8 changed files with 36 additions and 7 deletions
|
@ -813,6 +813,32 @@ impl From<TextEmphasisPosition> for u8 {
|
|||
}
|
||||
}
|
||||
|
||||
/// Values for the `word-break` property.
|
||||
#[repr(u8)]
|
||||
#[derive(
|
||||
Clone,
|
||||
Copy,
|
||||
Debug,
|
||||
Eq,
|
||||
MallocSizeOf,
|
||||
Parse,
|
||||
PartialEq,
|
||||
SpecifiedValueInfo,
|
||||
ToComputedValue,
|
||||
ToCss,
|
||||
)]
|
||||
#[allow(missing_docs)]
|
||||
pub enum WordBreak {
|
||||
Normal,
|
||||
BreakAll,
|
||||
KeepAll,
|
||||
/// The break-word value, needed for compat.
|
||||
///
|
||||
/// Specifying `word-break: break-word` makes `overflow-wrap` behave as
|
||||
/// `anywhere`, and `word-break` behave like `normal`.
|
||||
BreakWord,
|
||||
}
|
||||
|
||||
/// Values for the `overflow-wrap` property.
|
||||
#[repr(u8)]
|
||||
#[derive(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue