From 29bcb5b6368adab46fc31b4bc190e3b0b551baa2 Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Fri, 14 Apr 2017 09:13:15 +0200 Subject: [PATCH] Add 'prefix' and 'suffix' descriptors for @counter-style --- components/style/counter_style.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/components/style/counter_style.rs b/components/style/counter_style.rs index 9d3551a4d52..4cca58f75d7 100644 --- a/components/style/counter_style.rs +++ b/components/style/counter_style.rs @@ -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