mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Add 'pad' descritor of @counter-style
This commit is contained in:
parent
6f79684468
commit
e27de3842d
2 changed files with 38 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue