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:
Emilio Cobos Álvarez 2019-03-01 02:33:07 +00:00
parent 7d01114cbf
commit 9e0d38a64f
8 changed files with 36 additions and 7 deletions

View file

@ -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(