mirror of
https://github.com/servo/servo.git
synced 2025-06-21 15:49:04 +01:00
Counter names serialize as identifiers, not strings.
This commit is contained in:
parent
b6850853da
commit
75bc88b3d4
1 changed files with 2 additions and 2 deletions
|
@ -1272,7 +1272,7 @@ pub mod longhands {
|
|||
use super::content;
|
||||
use values::computed::ComputedValueAsSpecified;
|
||||
|
||||
use cssparser::{ToCss, Token};
|
||||
use cssparser::{ToCss, Token, serialize_identifier};
|
||||
use std::borrow::{Cow, ToOwned};
|
||||
|
||||
pub use self::computed_value::T as SpecifiedValue;
|
||||
|
@ -1297,7 +1297,7 @@ pub mod longhands {
|
|||
try!(dest.write_str(" "));
|
||||
}
|
||||
first = false;
|
||||
try!(Token::QuotedString(Cow::from(&*pair.0)).to_css(dest));
|
||||
try!(serialize_identifier(&pair.0, dest));
|
||||
try!(write!(dest, " {}", pair.1));
|
||||
}
|
||||
Ok(())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue