adobe-research / svgObjectModelGenerator

SVG OM Generator & Writer
Apache License 2.0
49 stars 20 forks source link

CSS optimisation duplicates data #162

Closed DmitryBaranovskiy closed 9 years ago

DmitryBaranovskiy commented 9 years ago

Example is in text-styling.svg:

      .cls-3, .cls-4, .cls-6, .cls-8, .cls-10, .cls-12, .cls-14, .cls-16, .cls-18 {
        font-size: 60px;
      }

      .cls-4, .cls-6, .cls-8, .cls-10, .cls-12, .cls-14, .cls-16, .cls-18 {
        fill: #030303;
        font-size: 60px;
      }

      .cls-10, .cls-12, .cls-14, .cls-16, .cls-18 {
        fill: #030303;
        font-size: 60px;
        font-family: "Arial";
      }

Should be

      .cls-3, .cls-4, .cls-6, .cls-8, .cls-10, .cls-12, .cls-14, .cls-16, .cls-18 {
        font-size: 60px;
      }

      .cls-4, .cls-6, .cls-8, .cls-10, .cls-12, .cls-14, .cls-16, .cls-18 {
        fill: #030303;
      }

      .cls-10, .cls-12, .cls-14, .cls-16, .cls-18 {
        font-family: Arial;
      }