mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
moving :dir() param serialization FIXME
This commit is contained in:
parent
a6ce817045
commit
1ebc1382ce
2 changed files with 1 additions and 1 deletions
|
@ -96,7 +96,6 @@ impl ToCss for NonTSPseudoClass {
|
||||||
}, )*
|
}, )*
|
||||||
NonTSPseudoClass::Dir(ref dir) => {
|
NonTSPseudoClass::Dir(ref dir) => {
|
||||||
dest.write_str(":dir(")?;
|
dest.write_str(":dir(")?;
|
||||||
// FIXME: This should be escaped as an identifier; see #19231
|
|
||||||
(**dir).to_css(dest)?;
|
(**dir).to_css(dest)?;
|
||||||
return dest.write_char(')')
|
return dest.write_char(')')
|
||||||
},
|
},
|
||||||
|
|
|
@ -191,6 +191,7 @@ impl ToCss for Direction {
|
||||||
let dir_str = match *self {
|
let dir_str = match *self {
|
||||||
Direction::Rtl => "rtl",
|
Direction::Rtl => "rtl",
|
||||||
Direction::Ltr => "ltr",
|
Direction::Ltr => "ltr",
|
||||||
|
// FIXME: This should be escaped as an identifier; see #19231
|
||||||
Direction::Other(ref other) => other,
|
Direction::Other(ref other) => other,
|
||||||
};
|
};
|
||||||
dest.write_str(dir_str)
|
dest.write_str(dir_str)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue