Add 'prefix' and 'suffix' descriptors for @counter-style

This commit is contained in:
Simon Sapin 2017-04-14 09:13:15 +02:00
parent d1558a2025
commit 29bcb5b636

View file

@ -133,6 +133,12 @@ counter_style_descriptors! {
/// https://drafts.csswg.org/css-counter-styles/#counter-style-negative
"negative" negative / eCSSCounterDesc_Negative: Negative =
Negative(Symbol::String("-".to_owned()), None);
/// https://drafts.csswg.org/css-counter-styles/#counter-style-prefix
"prefix" prefix / eCSSCounterDesc_Prefix: Symbol = Symbol::String("".to_owned());
/// https://drafts.csswg.org/css-counter-styles/#counter-style-suffix
"suffix" suffix / eCSSCounterDesc_Suffix: Symbol = Symbol::String(". ".to_owned());
}
/// https://drafts.csswg.org/css-counter-styles/#counter-style-system