Skip to content

Update clean-css #285

Description

@kleisauke

Currently, one- and two-letter CSS property names do not appear in the minified CSS output because cdnjs uses an outdated version of clean-css (v3.3.10). For example, with Mocha, this results in a non-functional progress indicator because it strips some essential SVG properties:

@@ -377,9 +377,6 @@ body {
 #mocha-stats :is(.ring-flatlight, .ring-highlight) {
   --stroke-thickness: 1.65px;
   --center: calc(var(--ring-container-size) / 2);
-  cx: var(--center);
-  cy: var(--center);
-  r: calc(var(--ring-radius) - calc(var(--stroke-thickness) / 2));
   fill: hsla(0, 0%, 0%, 0);
   stroke-width: var(--stroke-thickness);
 }

(see: https://cdnjs.cloudflare.com/ajax/libs/mocha/10.6.0/mocha.min.css)

This was fixed with commit clean-css/clean-css@0ffb65d.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions