Shorthand with variable reference should not have extra whitespace after colon for serialization

This commit is contained in:
Matthias Devlamynck 2017-02-08 20:17:44 +01:00 committed by Emilio Cobos Álvarez
parent 299f9446e6
commit 05b5aabc69
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
3 changed files with 46 additions and 4 deletions

View file

@ -561,9 +561,6 @@ pub fn append_serialization<'a, W, I, N>(dest: &mut W,
// for normal parsed values, add a space between key: and value
match &appendable_value {
&AppendableValue::Css(_) => {
try!(write!(dest, " "))
},
&AppendableValue::Declaration(decl) => {
if !decl.value_is_unparsed() {
// for normal parsed values, add a space between key: and value
@ -572,7 +569,8 @@ pub fn append_serialization<'a, W, I, N>(dest: &mut W,
},
// Currently append_serialization is only called with a Css or
// a Declaration AppendableValue.
&AppendableValue::DeclarationsForShorthand(..) => unreachable!()
&AppendableValue::DeclarationsForShorthand(..) => unreachable!(),
&AppendableValue::Css(_) => {}
}
try!(append_declaration_value(dest, appendable_value));