Bug 1063856 - Add more counter styles from the Predefined Counter Styles document, for better interop and web-compat.
authorXidorn Quan <quanxunzhen@gmail.com>
Tue, 09 Sep 2014 09:58:07 +0100
changeset 204232 8922b7cbc32dfb9fd55fc95708602f041c7b2e68
parent 204231 24e1c39a634b2d6e9cfcfcce4a1af653d12cf0a3
child 204233 be02154bdec2d878aa26e74df9d9def55bee2a08
push id48862
push userjkew@mozilla.com
push dateTue, 09 Sep 2014 08:59:39 +0000
treeherdermozilla-inbound@8922b7cbc32d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1063856
milestone35.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1063856 - Add more counter styles from the Predefined Counter Styles document, for better interop and web-compat.
layout/style/counterstyles.css
--- a/layout/style/counterstyles.css
+++ b/layout/style/counterstyles.css
@@ -108,112 +108,211 @@
 
 /* only alias is included as other complex counter styles will be generated by
  * specific algorithms to support the extended range. */
 
 @counter-style cjk-ideographic {
   system: extends trad-chinese-informal;
 }
 
+/* Predefined Counter Styles */
+
+/* Some counter styles defined in Predefined Counter Styles are also included
+ * here for compatibility with other browsers. */
+
+@counter-style arabic-indic {
+  system: numeric;
+  symbols: \660  \661  \662  \663  \664  \665  \666  \667  \668  \669;
+}
+
+@counter-style persian {
+  system: numeric;
+  symbols: \6F0  \6F1  \6F2  \6F3  \6F4  \6F5  \6F6  \6F7  \6F8  \6F9;
+}
+
+@counter-style lower-armenian {
+  system: additive;
+  range: 1 9999;
+  additive-symbols: 9000 \584, 8000 \583, 7000 \582, 6000 \581, 5000 \580, 4000 \57F, 3000 \57E, 2000 \57D, 1000 \57C, 900 \57B, 800 \57A, 700 \579, 600 \578, 500 \577, 400 \576, 300 \575, 200 \574, 100 \573, 90 \572, 80 \571, 70 \570, 60 \56F, 50 \56E, 40 \56D, 30 \56C, 20 \56B, 10 \56A, 9 \569, 8 \568, 7 \567, 6 \566, 5 \565, 4 \564, 3 \563, 2 \562, 1 \561;
+}
+
+@counter-style upper-armenian {
+  system: additive;
+  range: 1 9999;
+  additive-symbols: 9000 \554, 8000 \553, 7000 \552, 6000 \551, 5000 \550, 4000 \54F, 3000 \54E, 2000 \54D, 1000 \54C, 900 \54B, 800 \54A, 700 \549, 600 \548, 500 \547, 400 \546, 300 \545, 200 \544, 100 \543, 90 \542, 80 \541, 70 \540, 60 \53F, 50 \53E, 40 \53D, 30 \53C, 20 \53B, 10 \53A, 9 \539, 8 \538, 7 \537, 6 \536, 5 \535, 4 \534, 3 \533, 2 \532, 1 \531;
+}
+
+@counter-style bengali {
+  system: numeric;
+  symbols: \9E6  \9E7  \9E8  \9E9  \9EA  \9EB  \9EC  \9ED  \9EE  \9EF;
+}
+
+@counter-style devanagari {
+  system: numeric;
+  symbols: \966  \967  \968  \969  \96A  \96B  \96C  \96D  \96E  \96F;
+}
+
+@counter-style gujarati {
+  system: numeric;
+  symbols: \AE6  \AE7  \AE8  \AE9  \AEA  \AEB  \AEC  \AED  \AEE  \AEF;
+}
+
+@counter-style gurmukhi {
+  system: numeric;
+  symbols: \A66  \A67  \A68  \A69  \A6A  \A6B  \A6C  \A6D  \A6E  \A6F;
+}
+
+@counter-style cjk-heavenly-stem {
+  system: alphabetic;
+  symbols: \7532  \4E59  \4E19  \4E01  \620A  \5DF1  \5E9A  \8F9B  \58EC  \7678;
+  fallback: cjk-decimal;
+  suffix: '\3001';
+}
+
+@counter-style cjk-earthly-branch {
+  system: alphabetic;
+  symbols: \5B50  \4E11  \5BC5  \536F  \8FB0  \5DF3  \5348  \672A  \7533  \9149  \620C  \4EA5;
+  fallback: cjk-decimal;
+  suffix: '\3001';
+}
+
+@counter-style kannada {
+  system: numeric;
+  symbols: \CE6  \CE7  \CE8  \CE9  \CEA  \CEB  \CEC  \CED  \CEE  \CEF;
+}
+
+@counter-style khmer {
+  system: numeric;
+  symbols: \17E0  \17E1  \17E2  \17E3  \17E4  \17E5  \17E6  \17E7  \17E8  \17E9;
+}
+
+@counter-style cambodian {
+  system: extends khmer;
+}
+
+@counter-style lao {
+  system: numeric;
+  symbols: \ED0  \ED1  \ED2  \ED3  \ED4  \ED5  \ED6  \ED7  \ED8  \ED9;
+}
+
+@counter-style malayalam {
+  system: numeric;
+  symbols: \D66  \D67  \D68  \D69  \D6A  \D6B  \D6C  \D6D  \D6E  \D6F;
+}
+
+@counter-style mongolian {
+  system: numeric;
+  symbols: \1810  \1811  \1812  \1813  \1814  \1815  \1816  \1817  \1818  \1819;
+}
+
+@counter-style myanmar {
+  system: numeric;
+  symbols: \1040  \1041  \1042  \1043  \1044  \1045  \1046  \1047  \1048  \1049;
+}
+
+@counter-style oriya {
+  system: numeric;
+  symbols: \B66  \B67  \B68  \B69  \B6A  \B6B  \B6C  \B6D  \B6E  \B6F;
+}
+
+@counter-style tamil {
+  system: numeric;
+  symbols: \BE6  \BE7  \BE8  \BE9  \BEA  \BEB  \BEC  \BED  \BEE  \BEF;
+}
+
+@counter-style telugu {
+  system: numeric;
+  symbols: \C66  \C67  \C68  \C69  \C6A  \C6B  \C6C  \C6D  \C6E  \C6F;
+}
+
+@counter-style thai {
+  system: numeric;
+  symbols: \E50  \E51  \E52  \E53  \E54  \E55  \E56  \E57  \E58  \E59;
+}
+
+@counter-style tibetan {
+  system: numeric;
+  symbols: \F20  \F21  \F22  \F23  \F24  \F25  \F26  \F27  \F28  \F29;
+}
+
 /* Mozilla-specific counter styles */
 
 /* Numeric */
 
 @counter-style -moz-arabic-indic {
-  system: numeric;
-  symbols: \660  \661  \662  \663  \664  \665  \666  \667  \668  \669;
+  system: extends arabic-indic;
 }
 
 @counter-style -moz-persian {
-  system: numeric;
-  symbols: \6F0  \6F1  \6F2  \6F3  \6F4  \6F5  \6F6  \6F7  \6F8  \6F9;
+  system: extends persian;
 }
 
 @counter-style -moz-urdu {
-  system: extends -moz-persian;
+  system: extends persian;
 }
 
 @counter-style -moz-devanagari {
-  system: numeric;
-  symbols: \966  \967  \968  \969  \96A  \96B  \96C  \96D  \96F  \970;
+  system: extends devanagari;
 }
 
 @counter-style -moz-bengali {
-  system: numeric;
-  symbols: \9E6  \9E7  \9E8  \9E9  \9EA  \9EB  \9EC  \9ED  \9EF  \9F0;
+  system: extends bengali;
 }
 
 @counter-style -moz-gurmukhi {
-  system: numeric;
-  symbols: \A66  \A67  \A68  \A69  \A6A  \A6B  \A6C  \A6D  \A6F  \A70;
+  system: extends gurmukhi;
 }
 
 @counter-style -moz-gujarati {
-  system: numeric;
-  symbols: \AE6  \AE7  \AE8  \AE9  \AEA  \AEB  \AEC  \AED  \AEF  \AF0;
+  system: extends gujarati;
 }
 
 @counter-style -moz-oriya {
-  system: numeric;
-  symbols: \B66  \B67  \B68  \B69  \B6A  \B6B  \B6C  \B6D  \B6F  \B70;
+  system: extends oriya;
 }
 
 @counter-style -moz-tamil {
-  system: numeric;
-  symbols: \BE6  \BE7  \BE8  \BE9  \BEA  \BEB  \BEC  \BED  \BEE  \BEF;
+  system: extends tamil;
 }
 
 @counter-style -moz-telugu {
-  system: numeric;
-  symbols: \C66  \C67  \C68  \C69  \C6A  \C6B  \C6C  \C6D  \C6F  \C70;
+  system: extends telugu;
 }
 
 @counter-style -moz-kannada {
-  system: numeric;
-  symbols: \CE6  \CE7  \CE8  \CE9  \CEA  \CEB  \CEC  \CED  \CEF  \CF0;
+  system: extends kannada;
 }
 
 @counter-style -moz-malayalam {
-  system: numeric;
-  symbols: \D66  \D67  \D68  \D69  \D6A  \D6B  \D6C  \D6D  \D6F  \D70;
+  system: extends malayalam;
 }
 
 @counter-style -moz-thai {
-  system: numeric;
-  symbols: \E50  \E51  \E52  \E53  \E54  \E55  \E56  \E57  \E58  \E59;
+  system: extends thai;
 }
 
 @counter-style -moz-lao {
-  system: numeric;
-  symbols: \ED0  \ED1  \ED2  \ED3  \ED4  \ED5  \ED6  \ED7  \ED8  \ED9;
+  system: extends lao;
 }
 
 @counter-style -moz-myanmar {
-  system: numeric;
-  symbols: \1040  \1041  \1042  \1043  \1044  \1045  \1046  \1047  \1048  \1049;
+  system: extends myanmar;
 }
 
 @counter-style -moz-khmer {
-  system: numeric;
-  symbols: \17E0  \17E1  \17E2  \17E3  \17E4  \17E5  \17E6  \17E7  \17E8  \17E9;
+  system: extends khmer;
 }
 
 /* Alphabetic */
 
 @counter-style -moz-cjk-heavenly-stem {
-  system: alphabetic;
-  symbols: \7532  \4E59  \4E19  \4E01  \620A  \5DF1  \5E9A  \8F9B  \58EC  \7678;
-  fallback: cjk-decimal;
-  suffix: '\3001';
+  system: extends cjk-heavenly-stem;
 }
 @counter-style -moz-cjk-earthly-branch {
-  system: alphabetic;
-  symbols: \5B50  \4E11  \5BC5  \536F  \8FB0  \5DF3  \5348  \672A  \7533  \9149  \620C  \4EA5;
-  fallback: cjk-decimal;
-  suffix: '\3001';
+  system: extends cjk-earthly-branch;
 }
 
 @counter-style -moz-hangul {
   system: alphabetic;
   symbols: \AC00  \B098  \B2E4  \B77C  \B9C8  \BC14  \C0AC  \C544  \C790  \CC28  \CE74  \D0C0  \D30C  \D558;
   suffix: ',';
 }
 @counter-style -moz-hangul-consonant {