diff options
author | Daniel Holbert <dholbert@cs.stanford.edu> | 2018-12-14 21:24:17 +0000 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2018-12-16 13:35:07 +0100 |
commit | ee6bf986757b564b10a570410c36ae2c5e2257e0 (patch) | |
tree | 4da6dc696ee9c0df2b20a74fe4803dd4aefc5de8 | |
parent | 3d78025e10164722d0460b1861e008fb56ba4570 (diff) | |
download | servo-ee6bf986757b564b10a570410c36ae2c5e2257e0.tar.gz servo-ee6bf986757b564b10a570410c36ae2c5e2257e0.zip |
style: Include the 'unsafe' keyword in serializations of css-align properties.
Previously we'd omit it since it was merely an explicit way of requesting the
default behavior. But the spec has changed such that it's not necessarily
equivalent to the default anymore:
https://drafts.csswg.org/css-align/#overflow-values
(Technically the behaviors are probably still equivalent in our implementation,
pending bug 1451380, but we don't have to publicize that via our
serialization.)
Differential Revision: https://phabricator.services.mozilla.com/D14599
-rw-r--r-- | components/style/values/specified/align.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/components/style/values/specified/align.rs b/components/style/values/specified/align.rs index 4cf68c9b4c6..befeaa2ee6f 100644 --- a/components/style/values/specified/align.rs +++ b/components/style/values/specified/align.rs @@ -92,8 +92,7 @@ impl ToCss for AlignFlags { dest.write_char(' ')?; }, AlignFlags::SAFE => dest.write_str("safe ")?, - // Don't serialize "unsafe", since it's the default. - AlignFlags::UNSAFE => {}, + AlignFlags::UNSAFE => dest.write_str("unsafe ")?, _ => { debug_assert_eq!(extra_flags, AlignFlags::empty()); }, |