Implement ToCss for str and String

This commit is contained in:
Anthony Ramine 2017-06-07 21:00:35 +02:00
parent 12dca42dd7
commit c8c6f3482f
12 changed files with 40 additions and 75 deletions

View file

@ -250,7 +250,6 @@
spec="https://drafts.csswg.org/css-grid/#propdef-grid-template"
disable_when_testing="True"
products="gecko">
use cssparser::serialize_string;
use parser::Parse;
use properties::longhands::grid_template_rows;
use properties::longhands::grid_template_areas::TemplateAreas;
@ -370,7 +369,7 @@
concat_serialize_idents("[", "] ", names, " ", dest)?;
}
serialize_string(string, dest)?;
string.to_css(dest)?;
dest.write_str(" ")?;
size.to_css(dest)?;
}