Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

fix: remove `:is()` from `mocha.css` to support older browsers (#5225) (#5227)

Danny Lin0a24b58477ea
diff --git a/mocha.css b/mocha.css
index 1e0d2224..1c548546 100644
--- a/mocha.css
+++ b/mocha.css
@@ -349,7 +349,8 @@ body {
padding: 0;
}
-#mocha-stats :is(.progress-element, .progress-text) {
+#mocha-stats .progress-element,
+#mocha-stats .progress-text {
width: var(--ring-container-size);
display: block;
top: 12px;
@@ -374,7 +375,8 @@ body {
height: var(--ring-container-size);
}
-#mocha-stats :is(.ring-flatlight, .ring-highlight) {
+#mocha-stats .ring-flatlight,
+#mocha-stats .ring-highlight {
--stroke-thickness: 1.65px;
--center: calc(var(--ring-container-size) / 2);
cx: var(--center);