Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 34 additions & 25 deletions css-counter-styles-3/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1632,7 +1632,7 @@ Numeric: ''decimal'', ''decimal-leading-zero'', ''arabic-indic'', ''armenian'',


<h3 id='simple-alphabetic'>
Alphabetic: ''lower-alpha'', ''lower-latin'', ''upper-alpha'', ''upper-latin'', ''cjk-earthly-branch'', ''cjk-heavenly-stem'', ''lower-greek'', ''hiragana'', ''hiragana-iroha'', ''katakana'', ''katakana-iroha''</h3>
Alphabetic: ''lower-alpha'', ''lower-latin'', ''upper-alpha'', ''upper-latin'', ''lower-greek'', ''hiragana'', ''hiragana-iroha'', ''katakana'', ''katakana-iroha''</h3>

<dl dfn-type=value dfn-for="<counter-style-name>">
<dt><dfn id=lower-alpha>lower-alpha</dfn>
Expand All @@ -1647,16 +1647,6 @@ Alphabetic: ''lower-alpha'', ''lower-latin'', ''upper-alpha'', ''upper-latin'',
Uppercase ASCII letters
(e.g., A, B, C, ..., Z, AA, AB).

<dt><dfn>cjk-earthly-branch</dfn>
<dd>
Han "Earthly Branch" ordinals
(e.g., 子, 丑, 寅, ..., 亥, 子子, 子丑).

<dt><dfn>cjk-heavenly-stem</dfn>
<dd>
Han "Heavenly Stem" ordinals
(e.g., 甲, 乙, 丙, ..., 癸, 甲甲, 甲乙).

<dt><dfn id=lower-greek>lower-greek</dfn>
<dd>
Lowercase classical Greek
Expand Down Expand Up @@ -1704,20 +1694,6 @@ Alphabetic: ''lower-alpha'', ''lower-latin'', ''upper-alpha'', ''upper-latin'',
system: extends upper-alpha;
}

@counter-style cjk-earthly-branch {
system: alphabetic;
symbols: "\5B50" "\4E11" "\5BC5" "\536F" "\8FB0" "\5DF3" "\5348" "\672A" "\7533" "\9149" "\620C" "\4EA5";
/* 子 丑 寅 卯 辰 巳 午 未 申 酉 戌 亥 */
suffix: "、";
}

@counter-style cjk-heavenly-stem {
system: alphabetic;
symbols: "\7532" "\4E59" "\4E19" "\4E01" "\620A" "\5DF1" "\5E9A" "\8F9B" "\58EC" "\7678";
/* 甲 乙 丙 丁 戊 己 庚 辛 壬 癸 */
suffix: "、";
}

@counter-style lower-greek {
system: alphabetic;
symbols: "\3B1" "\3B2" "\3B3" "\3B4" "\3B5" "\3B6" "\3B7" "\3B8" "\3B9" "\3BA" "\3BB" "\3BC" "\3BD" "\3BE" "\3BF" "\3C0" "\3C1" "\3C3" "\3C4" "\3C5" "\3C6" "\3C7" "\3C8" "\3C9";
Expand Down Expand Up @@ -1831,6 +1807,39 @@ Symbolic: ''disc'', ''circle'', ''square'', ''disclosure-open'', ''disclosure-cl
while the ''disclosure-open'' style might use the character
U+25BE BLACK DOWN-POINTING SMALL TRIANGLE (▾).

<h3 id='simple-fixed'>
Fixed: ''cjk-earthly-branch'', ''cjk-heavenly-stem''</h3>

<dl dfn-type=value dfn-for="<counter-style-name>">
<dt><dfn>cjk-earthly-branch</dfn>
<dd>
Han "Earthly Branch" ordinals
(e.g., 子, 丑, 寅, ..., 亥).

<dt><dfn>cjk-heavenly-stem</dfn>
<dd>
Han "Heavenly Stem" ordinals
(e.g., 甲, 乙, 丙, ..., 癸)
</dl>

The following stylesheet fragment provides the normative definition of these predefined counter styles:

<pre class='stylesheet'><bdo dir=ltr>
@counter-style cjk-earthly-branch {
system: fixed;
symbols: "\5B50" "\4E11" "\5BC5" "\536F" "\8FB0" "\5DF3" "\5348" "\672A" "\7533" "\9149" "\620C" "\4EA5";
/* 子 丑 寅 卯 辰 巳 午 未 申 酉 戌 亥 */
suffix: "、";
}

@counter-style cjk-heavenly-stem {
system: fixed;
symbols: "\7532" "\4E59" "\4E19" "\4E01" "\620A" "\5DF1" "\5E9A" "\8F9B" "\58EC" "\7678";
/* 甲 乙 丙 丁 戊 己 庚 辛 壬 癸 */
suffix: "、";
}
</bdo></pre>

<!-- ======================================================================= -->

<h2 id='complex-predefined-counters'>
Expand Down