Make ContentItem use a CustomIdent for counter names

See https://github.com/w3c/csswg-drafts/pull/2377
This commit is contained in:
Anthony Ramine 2018-03-01 12:38:02 +01:00
parent 1df6c97948
commit a4d3a8d74a
6 changed files with 74 additions and 26 deletions

View file

@ -102,9 +102,9 @@ pub enum ContentItem {
/// Literal string content.
String(Box<str>),
/// `counter(name, style)`.
Counter(Box<str>, CounterStyleType),
Counter(CustomIdent, CounterStyleType),
/// `counters(name, separator, style)`.
Counters(Box<str>, Box<str>, CounterStyleType),
Counters(CustomIdent, Box<str>, CounterStyleType),
/// `open-quote`.
OpenQuote,
/// `close-quote`.