Use CustomIdent in Symbol::Ident

The former code was not following the spec.
This commit is contained in:
Anthony Ramine 2018-03-02 21:02:03 +01:00
parent a71b5d5e16
commit ad7adee882
5 changed files with 51 additions and 6 deletions

View file

@ -313,7 +313,7 @@ impl ToNsCssValue for counter_style::Symbol {
fn convert(self, nscssvalue: &mut nsCSSValue) {
match self {
counter_style::Symbol::String(s) => nscssvalue.set_string(&s),
counter_style::Symbol::Ident(s) => nscssvalue.set_ident(&s),
counter_style::Symbol::Ident(s) => nscssvalue.set_ident_from_atom(&s.0),
}
}
}