Revert changeset 63b04ce7cf57 (bug 1808995) and remove associated WPT tests, because the behavior implemented there deviated from the Counter-Styles spec.
Per https://github.com/w3c/csswg-drafts/issues/8619.
Differential Revision: https://phabricator.services.mozilla.com/D177240
bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1830127
gecko-commit: ce37f205bc4a8f38ff9837e979d50bae856f2a4f
gecko-reviewers: emilio
diff --git a/css/css-counter-styles/counter-style-at-rule/fallback-cycle-ref.html b/css/css-counter-styles/counter-style-at-rule/fallback-cycle-ref.html
deleted file mode 100644
index 22bcf8d..0000000
--- a/css/css-counter-styles/counter-style-at-rule/fallback-cycle-ref.html
+++ /dev/null
@@ -1,56 +0,0 @@
-<!DOCTYPE html>
-<meta charset=utf-8>
-<title>CSS Reference: fallback cycle</title>
-<style>
-.decimal {
- list-style-type: decimal;
-}
-.paren::marker {
- content: "(" counter(list-item) ")\A0";
-}
-.bracket::marker {
- content: "[" counter(list-item, lower-roman) "]\A0";
-}
-.brace::marker {
- content: "{" counter(list-item, lower-alpha) "}\A0";
-}
-</style>
-
-<ol>
- <li class=decimal>paren > bracket > brace > decimal
- <li class=paren>paren
- <li class=paren>paren
- <li class=paren>paren
- <li class=bracket>paren > bracket
- <li class=bracket>paren > bracket
- <li class=bracket>paren > bracket
- <li class=brace>paren > bracket > brace
- <li class=brace>paren > bracket > brace
- <li class=decimal>paren > bracket > brace > decimal
-</ol>
-
-<ol>
- <li class=decimal>bracket > brace > paren > decimal
- <li class=paren>bracket > brace > paren
- <li class=paren>bracket > brace > paren
- <li class=bracket>bracket
- <li class=bracket>bracket
- <li class=bracket>bracket
- <li class=bracket>bracket
- <li class=brace>bracket > brace
- <li class=brace>bracket > brace
- <li class=decimal>bracket > brace > paren > decimal
-</ol>
-
-<ol>
- <li class=decimal>brace > paren > bracket > decimal
- <li class=paren>brace > paren
- <li class=paren>brace > paren
- <li class=paren>brace > paren
- <li class=bracket>brace > paren > bracket
- <li class=bracket>brace > paren > bracket
- <li class=brace>brace
- <li class=brace>brace
- <li class=brace>brace
- <li class=decimal>brace > paren > bracket > decimal
-</ol>
diff --git a/css/css-counter-styles/counter-style-at-rule/fallback-cycle.html b/css/css-counter-styles/counter-style-at-rule/fallback-cycle.html
deleted file mode 100644
index 2e63a3f..0000000
--- a/css/css-counter-styles/counter-style-at-rule/fallback-cycle.html
+++ /dev/null
@@ -1,85 +0,0 @@
-<!DOCTYPE html>
-<meta charset=utf-8>
-<title>CSS Test: fallback cycle</title>
-<link rel="author" title="Jonathan Kew" href="mailto:jkew@mozilla.com">
-<link rel="help" href="https://drafts.csswg.org/css-counter-styles-3/#counter-style-range">
-<link rel="help" href="https://drafts.csswg.org/css-counter-styles-3/#counter-style-fallback">
-<meta name="assert" content="While following fallbacks to find a counter style that can render the given counter value,
- if a loop in the specified fallbacks is detected, the decimal style must be used instead">
-<link rel="match" href="fallback-cycle-ref.html">
-<style>
-/*
- Three styles with different but overlapping ranges,
- with fallback to each other in a cycle.
-
- Depending where in the cycle we start, we expect different results
- for the overlapping ranges; in all cases we fall back to the default
- (decimal) style when fallback would loop around.
-*/
-@counter-style paren {
- system: extends decimal;
- prefix: "(";
- suffix: ")\A0";
- range: 2 4;
- fallback: bracket;
-}
-
-@counter-style bracket {
- system: extends lower-roman;
- prefix: "[";
- suffix: "]\A0";
- range: 4 7;
- fallback: brace;
-}
-
-@counter-style brace {
- system: extends lower-alpha;
- prefix: "{";
- suffix: "}\A0";
- range: 7 9;
- fallback: paren;
-}
-
-ol {
- list-style-type: disc; /* overridden by the counter-style rules */
-}
-</style>
-
-<ol style="list-style: paren">
- <li>paren > bracket > brace > decimal
- <li>paren
- <li>paren
- <li>paren
- <li>paren > bracket
- <li>paren > bracket
- <li>paren > bracket
- <li>paren > bracket > brace
- <li>paren > bracket > brace
- <li>paren > bracket > brace > decimal
-</ol>
-
-<ol style="list-style: bracket">
- <li>bracket > brace > paren > decimal
- <li>bracket > brace > paren
- <li>bracket > brace > paren
- <li>bracket
- <li>bracket
- <li>bracket
- <li>bracket
- <li>bracket > brace
- <li>bracket > brace
- <li>bracket > brace > paren > decimal
-</ol>
-
-<ol style="list-style: brace">
- <li>brace > paren > bracket > decimal
- <li>brace > paren
- <li>brace > paren
- <li>brace > paren
- <li>brace > paren > bracket
- <li>brace > paren > bracket
- <li>brace
- <li>brace
- <li>brace
- <li>brace > paren > bracket > decimal
-</ol>
diff --git a/css/css-counter-styles/counter-style-at-rule/suffix-fallback-ref.html b/css/css-counter-styles/counter-style-at-rule/suffix-fallback-ref.html
deleted file mode 100644
index 15cd54c..0000000
--- a/css/css-counter-styles/counter-style-at-rule/suffix-fallback-ref.html
+++ /dev/null
@@ -1,47 +0,0 @@
-<!DOCTYPE html>
-<meta charset=utf-8>
-<title>CSS Reference: suffix fallback</title>
-<style>
-div div {
- width: 4em;
- text-align: right;
-}
-</style>
-
-<div>
- <div>1st</div>
- <div>2nd</div>
- <div>3rd</div>
- <div>4th</div>
- <div>5th</div>
- <div>6th</div>
- <div>7th</div>
- <div>8th</div>
- <div>9th</div>
- <div>10th</div>
- <div>11th</div>
- <div>12th</div>
- <div>13th</div>
- <div>14th</div>
- <div>15th</div>
- <div>16th</div>
- <div>17th</div>
- <div>18th</div>
- <div>19th</div>
- <div>20th</div>
- <div>21st</div>
- <div>22nd</div>
- <div>23rd</div>
- <div>24th</div>
- <div>25th</div>
- <div>26th</div>
- <div>27th</div>
- <div>28th</div>
- <div>29th</div>
- <div>30th</div>
- <div>31st</div>
- <div>32nd</div>
- <div>33rd</div>
- <div>34th</div>
- <div>35th</div>
-</div>
diff --git a/css/css-counter-styles/counter-style-at-rule/suffix-fallback.html b/css/css-counter-styles/counter-style-at-rule/suffix-fallback.html
deleted file mode 100644
index 7684c9a..0000000
--- a/css/css-counter-styles/counter-style-at-rule/suffix-fallback.html
+++ /dev/null
@@ -1,84 +0,0 @@
-<!DOCTYPE html>
-<meta charset=utf-8>
-<title>CSS Test: suffix fallback</title>
-<link rel="author" title="Jonathan Kew" href="mailto:jkew@mozilla.com">
-<link rel="help" href="https://drafts.csswg.org/css-counter-styles-3/#counter-style-range">
-<link rel="help" href="https://drafts.csswg.org/css-counter-styles-3/#counter-style-fallback">
-<link rel="match" href="suffix-fallback-ref.html">
-<style>
-/* A set of rules that rely on range limits and fallback to vary the suffix. */
-@counter-style ordinal-default {
- system: numeric;
- symbols: "0" "1" "2" "3" "4" "5" "6" "7" "8" "9";
- suffix: "th";
- range: 1 infinite;
-}
-
-@counter-style ordinal {
- system: extends ordinal-default;
- suffix: "st";
- fallback: ordinal-twos;
- range: 1 1, 21 21, 31 31, 41 41, 51 51, 61 61, 71 71, 81 81, 91 91;
-}
-
-@counter-style ordinal-twos {
- system: extends ordinal-default;
- suffix: "nd";
- fallback: ordinal-threes;
- range: 2 2, 22 22, 32 32, 42 42, 52 52, 62 62, 72 72, 82 82, 92 92;
-}
-
-@counter-style ordinal-threes {
- system: extends ordinal-default;
- suffix: "rd";
- fallback: ordinal-default;
- range: 3 3, 23 23, 33 33, 43 43, 53 53, 63 63, 73 73, 83 83, 93 93;
-}
-
-ol.ordinal {
- margin: 0;
- padding: 0;
- list-style: ordinal;
-}
-li {
- margin-left: 4em;
-}
-</style>
-
-<ol class="ordinal">
- <li></li>
- <li></li>
- <li></li>
- <li></li>
- <li></li>
- <li></li>
- <li></li>
- <li></li>
- <li></li>
- <li></li>
- <li></li>
- <li></li>
- <li></li>
- <li></li>
- <li></li>
- <li></li>
- <li></li>
- <li></li>
- <li></li>
- <li></li>
- <li></li>
- <li></li>
- <li></li>
- <li></li>
- <li></li>
- <li></li>
- <li></li>
- <li></li>
- <li></li>
- <li></li>
- <li></li>
- <li></li>
- <li></li>
- <li></li>
- <li></li>
-</ol>