wpt / css / css-counter-styles / trad-chinese-formal / counter-trad-chinese-formal.html

Status: FAIL | Duration: 16ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi

/css/css-counter-styles/trad-chinese-formal/counter-trad-chinese-formal.html

<!DOCTYPE html>
<title>CSS Counter Styles: Longhand East Asian Counter Styles Chinese (required)</title>
<link rel="help" href="https://drafts.csswg.org/css-counter-styles/#limited-chinese">
<link rel="author" href="mailto:saku@email.sakupi01.com" title="saku">
<link rel="match" href="counter-trad-chinese-formal-ref.html">
<style>
  div::after {
    content: counter(n, trad-chinese-formal);
  }
</style>
<div style="counter-reset: n 0;"></div>
<div style="counter-reset: n 1;"></div>
<div style="counter-reset: n 2;"></div>
<div style="counter-reset: n 3;"></div>
<div style="counter-reset: n 4;"></div>
<div style="counter-reset: n 5;"></div>
<div style="counter-reset: n 6;"></div>
<div style="counter-reset: n 7;"></div>
<div style="counter-reset: n 8;"></div>
<div style="counter-reset: n 9;"></div>

<div style="counter-reset: n 10;"></div>
<div style="counter-reset: n 100;"></div>
<div style="counter-reset: n 1000;"></div>

<div style="counter-reset: n 11;"></div>
<div style="counter-reset: n 99;"></div>
<div style="counter-reset: n 101;"></div>
<div style="counter-reset: n 200;"></div>
<div style="counter-reset: n 6001;"></div>

<!-- Test second group marker (萬) - ten-thousands group -->
<div style="counter-reset: n 10000;"></div>
<div style="counter-reset: n 20000;"></div>
<div style="counter-reset: n 50000;"></div>
<div style="counter-reset: n 99999;"></div>

<!-- Test complex patterns within ten-thousands group (algorithm step 4: digit markers) -->
<div style="counter-reset: n 12345;"></div>
<div style="counter-reset: n 10001;"></div>
<div style="counter-reset: n 10010;"></div>
<div style="counter-reset: n 10100;"></div>
<div style="counter-reset: n 11000;"></div>

<!-- Test third group marker (億) - hundred-millions group -->
<div style="counter-reset: n 100000000;"></div>
<div style="counter-reset: n 200000000;"></div>
<div style="counter-reset: n 500000000;"></div>
<div style="counter-reset: n 999999999;"></div>

<!-- Test complex patterns within hundred-millions group (algorithm step 6: zero dropping) -->
<div style="counter-reset: n 123456789;"></div>
<div style="counter-reset: n 100000001;"></div>
<div style="counter-reset: n 100010000;"></div>
<div style="counter-reset: n 100100000;"></div>
<div style="counter-reset: n 101000000;"></div>
<div style="counter-reset: n 110000000;"></div>

<!-- Test fourth group marker (兆) - trillions group -->
<div style="counter-reset: n 1000000000000;"></div>
<div style="counter-reset: n 2000000000000;"></div>
<div style="counter-reset: n 5000000000000;"></div>
<div style="counter-reset: n 9999999999999;"></div>

<!-- Test extended ranges (algorithm step 3: group markers up to 10^16) -->
<!-- Test 10^13 range (ten-trillions) -->
<div style="counter-reset: n 10000000000000;"></div>
<div style="counter-reset: n 50000000000000;"></div>
<div style="counter-reset: n 99999999999999;"></div>

<!-- Test 10^15 range (hundred-trillions) -->
<div style="counter-reset: n 100000000000000;"></div>
<div style="counter-reset: n 500000000000000;"></div>
<div style="counter-reset: n 999999999999999;"></div>

<!-- Test complex patterns in trillions group (step 5: drop ones, step 6: drop zeros) -->
<div style="counter-reset: n 1234567890123;"></div>
<div style="counter-reset: n 1000000000001;"></div>
<div style="counter-reset: n 1000000010000;"></div>
<div style="counter-reset: n 1000001000000;"></div>
<div style="counter-reset: n 1000100000000;"></div>
<div style="counter-reset: n 1010000000000;"></div>
<div style="counter-reset: n 1100000000000;"></div>

<!-- Test interaction between multiple groups -->
<div style="counter-reset: n 1001001001001;"></div>
<div style="counter-reset: n 1010101010101;"></div>
<div style="counter-reset: n 1000100010001;"></div>
<div style="counter-reset: n 5005005005005;"></div>

<!-- Test zero dropping behavior across different groups -->
<div style="counter-reset: n 1000000000000;"></div>
<div style="counter-reset: n 1000000000;"></div>
<div style="counter-reset: n 1000000;"></div>
<div style="counter-reset: n 1000;"></div>
<div style="counter-reset: n 10000000000000;"></div>
<div style="counter-reset: n 100000000000000;"></div>

<!-- Test boundary values at the edge of range (-10^16+1 to 10^16-1) -->
<div style="counter-reset: n 9999999999999999;"></div>
<div style="counter-reset: n 1000000000000000;"></div>

<!-- Test out-of-range values (should fallback to cjk-decimal) -->
<div style="counter-reset: n 10000000000000000;"></div>

<!-- Test negative numbers (algorithm step 8: negative sign handling) -->
<div style="counter-reset: n -10000;"></div>
<div style="counter-reset: n -100000000;"></div>
<div style="counter-reset: n -1000000000000;"></div>
<div style="counter-reset: n -9999999999999999;"></div>

<div style="counter-reset: n -1;"></div>

/css/css-counter-styles/trad-chinese-formal/counter-trad-chinese-formal-ref.html

<!DOCTYPE html>
<div>&#x96f6;</div>
<div>&#x58f9;</div>
<div>&#x8cb3;</div>
<div>&#x53c3;</div>
<div>&#x8086;</div>
<div>&#x4f0d;</div>
<div>&#x9678;</div>
<div>&#x67d2;</div>
<div>&#x634c;</div>
<div>&#x7396;</div>

<div>&#x58f9;&#x62fe;</div>
<div>&#x58f9;&#x4f70;</div>
<div>&#x58f9;&#x4edf;</div>

<div>&#x58f9;&#x62fe;&#x58f9;</div>
<div>&#x7396;&#x62fe;&#x7396;</div>
<div>&#x58f9;&#x4f70;&#x96f6;&#x58f9;</div>
<div>&#x8cb3;&#x4f70;</div>
<div>&#x9678;&#x4edf;&#x96f6;&#x58f9;</div>

<!-- Test second group marker (萬) - ten-thousands group -->
<div>&#x58f9;&#x842c;</div>
<div>&#x8cb3;&#x842c;</div>
<div>&#x4f0d;&#x842c;</div>
<div>&#x7396;&#x842c;&#x7396;&#x4edf;&#x7396;&#x4f70;&#x7396;&#x62fe;&#x7396;</div>

<!-- Test complex patterns within ten-thousands group (algorithm step 4: digit markers) -->
<div>&#x58f9;&#x842c;&#x8cb3;&#x4edf;&#x53c3;&#x4f70;&#x8086;&#x62fe;&#x4f0d;</div>
<div>&#x58f9;&#x842c;&#x96f6;&#x58f9;</div>
<div>&#x58f9;&#x842c;&#x96f6;&#x58f9;&#x62fe;</div>
<div>&#x58f9;&#x842c;&#x96f6;&#x58f9;&#x4f70;</div>
<div>&#x58f9;&#x842c;&#x58f9;&#x4edf;</div>

<!-- Test third group marker (億) - hundred-millions group -->
<div>&#x58f9;&#x5104;</div>
<div>&#x8cb3;&#x5104;</div>
<div>&#x4f0d;&#x5104;</div>
<div>&#x7396;&#x5104;&#x7396;&#x4edf;&#x7396;&#x4f70;&#x7396;&#x62fe;&#x7396;&#x842c;&#x7396;&#x4edf;&#x7396;&#x4f70;&#x7396;&#x62fe;&#x7396;</div>

<!-- Test complex patterns within hundred-millions group (algorithm step 6: zero dropping) -->
<div>&#x58f9;&#x5104;&#x8cb3;&#x4edf;&#x53c3;&#x4f70;&#x8086;&#x62fe;&#x4f0d;&#x842c;&#x9678;&#x4edf;&#x67d2;&#x4f70;&#x634c;&#x62fe;&#x7396;</div>
<div>&#x58f9;&#x5104;&#x96f6;&#x58f9;</div>
<div>&#x58f9;&#x5104;&#x96f6;&#x58f9;&#x842c;</div>
<div>&#x58f9;&#x5104;&#x96f6;&#x58f9;&#x62fe;&#x842c;</div>
<div>&#x58f9;&#x5104;&#x96f6;&#x58f9;&#x4f70;&#x842c;</div>
<div>&#x58f9;&#x5104;&#x58f9;&#x4edf;&#x842c;</div>

<!-- Test fourth group marker (兆) - trillions group -->
<div>&#x58f9;&#x5146;</div>
<div>&#x8cb3;&#x5146;</div>
<div>&#x4f0d;&#x5146;</div>
<div>&#x7396;&#x5146;&#x7396;&#x4edf;&#x7396;&#x4f70;&#x7396;&#x62fe;&#x7396;&#x5104;&#x7396;&#x4edf;&#x7396;&#x4f70;&#x7396;&#x62fe;&#x7396;&#x842c;&#x7396;&#x4edf;&#x7396;&#x4f70;&#x7396;&#x62fe;&#x7396;</div>

<!-- Test extended ranges (algorithm step 3: group markers up to 10^16) -->
<!-- Test 10^13 range (ten-trillions) -->
<div>&#x58f9;&#x62fe;&#x5146;</div>
<div>&#x4f0d;&#x62fe;&#x5146;</div>
<div>&#x7396;&#x62fe;&#x7396;&#x5146;&#x7396;&#x4edf;&#x7396;&#x4f70;&#x7396;&#x62fe;&#x7396;&#x5104;&#x7396;&#x4edf;&#x7396;&#x4f70;&#x7396;&#x62fe;&#x7396;&#x842c;&#x7396;&#x4edf;&#x7396;&#x4f70;&#x7396;&#x62fe;&#x7396;</div>

<!-- Test 10^15 range (hundred-trillions) -->
<div>&#x58f9;&#x4f70;&#x5146;</div>
<div>&#x4f0d;&#x4f70;&#x5146;</div>
<div>&#x7396;&#x4f70;&#x7396;&#x62fe;&#x7396;&#x5146;&#x7396;&#x4edf;&#x7396;&#x4f70;&#x7396;&#x62fe;&#x7396;&#x5104;&#x7396;&#x4edf;&#x7396;&#x4f70;&#x7396;&#x62fe;&#x7396;&#x842c;&#x7396;&#x4edf;&#x7396;&#x4f70;&#x7396;&#x62fe;&#x7396;</div>

<!-- Test complex patterns in trillions group (step 5: drop ones, step 6: drop zeros) -->
<div>&#x58f9;&#x5146;&#x8cb3;&#x4edf;&#x53c3;&#x4f70;&#x8086;&#x62fe;&#x4f0d;&#x5104;&#x9678;&#x4edf;&#x67d2;&#x4f70;&#x634c;&#x62fe;&#x7396;&#x842c;&#x96f6;&#x58f9;&#x4f70;&#x8cb3;&#x62fe;&#x53c3;</div>
<div>&#x58f9;&#x5146;&#x96f6;&#x58f9;</div>
<div>&#x58f9;&#x5146;&#x96f6;&#x58f9;&#x842c;</div>
<div>&#x58f9;&#x5146;&#x96f6;&#x58f9;&#x4f70;&#x842c;</div>
<div>&#x58f9;&#x5146;&#x96f6;&#x58f9;&#x5104;</div>
<div>&#x58f9;&#x5146;&#x96f6;&#x58f9;&#x4f70;&#x5104;</div>
<div>&#x58f9;&#x5146;&#x58f9;&#x4edf;&#x5104;</div>

<!-- Test interaction between multiple groups -->
<div>&#x58f9;&#x5146;&#x96f6;&#x58f9;&#x62fe;&#x5104;&#x96f6;&#x58f9;&#x4f70;&#x842c;&#x58f9;&#x4edf;&#x96f6;&#x58f9;</div>
<div>&#x58f9;&#x5146;&#x96f6;&#x58f9;&#x4f70;&#x96f6;&#x58f9;&#x5104;&#x96f6;&#x58f9;&#x4f70;&#x96f6;&#x58f9;&#x842c;&#x96f6;&#x58f9;&#x4f70;&#x96f6;&#x58f9;</div>
<div>&#x58f9;&#x5146;&#x96f6;&#x58f9;&#x5104;&#x96f6;&#x58f9;&#x842c;&#x96f6;&#x58f9;</div>
<div>&#x4f0d;&#x5146;&#x96f6;&#x4f0d;&#x62fe;&#x5104;&#x96f6;&#x4f0d;&#x4f70;&#x842c;&#x4f0d;&#x4edf;&#x96f6;&#x4f0d;</div>

<!-- Test zero dropping behavior across different groups -->
<div>&#x58f9;&#x5146;</div>
<div>&#x58f9;&#x62fe;&#x5104;</div>
<div>&#x58f9;&#x4f70;&#x842c;</div>
<div>&#x58f9;&#x4edf;</div>
<div>&#x58f9;&#x62fe;&#x5146;</div>
<div>&#x58f9;&#x4f70;&#x5146;</div>

<!-- Test boundary values at the edge of range (-10^16+1 to 10^16-1) -->
<div>&#x7396;&#x4edf;&#x7396;&#x4f70;&#x7396;&#x62fe;&#x7396;&#x5146;&#x7396;&#x4edf;&#x7396;&#x4f70;&#x7396;&#x62fe;&#x7396;&#x5104;&#x7396;&#x4edf;&#x7396;&#x4f70;&#x7396;&#x62fe;&#x7396;&#x842c;&#x7396;&#x4edf;&#x7396;&#x4f70;&#x7396;&#x62fe;&#x7396;</div>
<div>&#x58f9;&#x4edf;&#x5146;</div>

<!-- Test out-of-range values (should fallback to cjk-decimal) -->
<div>&#x4e00;&#x3007;&#x3007;&#x3007;&#x3007;&#x3007;&#x3007;&#x3007;&#x3007;&#x3007;&#x3007;&#x3007;&#x3007;&#x3007;&#x3007;&#x3007;</div>

<!-- Test negative numbers (algorithm step 8: negative sign handling) -->
<div>&#x8ca0;&#x58f9;&#x842c;</div>
<div>&#x8ca0;&#x58f9;&#x5104;</div>
<div>&#x8ca0;&#x58f9;&#x5146;</div>
<div>&#x8ca0;&#x7396;&#x4edf;&#x7396;&#x4f70;&#x7396;&#x62fe;&#x7396;&#x5146;&#x7396;&#x4edf;&#x7396;&#x4f70;&#x7396;&#x62fe;&#x7396;&#x5104;&#x7396;&#x4edf;&#x7396;&#x4f70;&#x7396;&#x62fe;&#x7396;&#x842c;&#x7396;&#x4edf;&#x7396;&#x4f70;&#x7396;&#x62fe;&#x7396;</div>

<div>&#x8ca0;&#x58f9;</div>