Add 'pad' descritor of @counter-style

This commit is contained in:
Simon Sapin 2017-04-14 09:56:34 +02:00
parent 6f79684468
commit e27de3842d
2 changed files with 38 additions and 0 deletions

View file

@ -210,3 +210,14 @@ impl ToNsCssValue for counter_style::Ranges {
}
}
}
impl ToNsCssValue for counter_style::Pad {
fn convert(&self, _nscssvalue: &mut nsCSSValue) {
let mut min_length = nsCSSValue::null();
let mut pad_with = nsCSSValue::null();
min_length.set_integer(self.0 as i32);
pad_with.set_from(&self.1);
// FIXME: add bindings for nsCSSValue::SetPairValue
//nscssvalue.set_pair(min_length, pad_with);
}
}