mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Issue #15977: Serialize counter-increment when there are no properties
This commit is contained in:
parent
c2d9f663af
commit
a700972cbb
2 changed files with 31 additions and 0 deletions
|
@ -269,6 +269,10 @@
|
|||
|
||||
impl ToCss for SpecifiedValue {
|
||||
fn to_css<W>(&self, dest: &mut W) -> fmt::Result where W: fmt::Write {
|
||||
if self.0.is_empty() {
|
||||
return dest.write_str("none");
|
||||
}
|
||||
|
||||
let mut first = true;
|
||||
for pair in &self.0 {
|
||||
if !first {
|
||||
|
@ -278,6 +282,7 @@
|
|||
try!(serialize_identifier(&pair.0, dest));
|
||||
try!(write!(dest, " {}", pair.1));
|
||||
}
|
||||
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue