moving :dir() param serialization FIXME

This commit is contained in:
Michael Wilson 2017-11-21 21:47:41 -08:00
parent a6ce817045
commit 1ebc1382ce
2 changed files with 1 additions and 1 deletions

View file

@ -96,7 +96,6 @@ impl ToCss for NonTSPseudoClass {
}, )*
NonTSPseudoClass::Dir(ref dir) => {
dest.write_str(":dir(")?;
// FIXME: This should be escaped as an identifier; see #19231
(**dir).to_css(dest)?;
return dest.write_char(')')
},

View file

@ -191,6 +191,7 @@ impl ToCss for Direction {
let dir_str = match *self {
Direction::Rtl => "rtl",
Direction::Ltr => "ltr",
// FIXME: This should be escaped as an identifier; see #19231
Direction::Other(ref other) => other,
};
dest.write_str(dir_str)