Skip to content

Commit

Permalink
Add 'prefix' and 'suffix' descriptors for @counter-style
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonSapin committed Apr 26, 2017
1 parent d1558a2 commit 29bcb5b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions components/style/counter_style.rs
Expand Up @@ -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
Expand Down

0 comments on commit 29bcb5b

Please sign in to comment.