Cerdic/CSSTidy

font-face src-property

lifecom opened this issue · 2 comments

E.g. Bootstrap Glyphicons font-face.

Before:

@font-face {
    font-family: 'Glyphicons Halflings';
    src: url('../fonts/glyphicons-halflings-regular.eot');
    src: url('../fonts/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'),
         url('../fonts/glyphicons-halflings-regular.woff') format('woff'),
         url('../fonts/glyphicons-halflings-regular.ttf') format('truetype'),
         url('../fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular') format('svg');
}

After (w/o minification for clarity)

@font-face {
    font-family: "Glyphicons Halflings";
    src: url("") format("embedded-opentype"),
         url("../fonts/glyphicons-halflings-regular.woff") format("woff"),
         url("../fonts/glyphicons-halflings-regular.ttf") format("truetype"),
         url("") format("svg");
}

The problems:

  • shows only last src-property
  • url like ...eot?#... and ...svg#... not shows

Upd:
Both src-property shows (invisible in Firebug)

Sorry, is not related with CSSTidy.
The problem with the CMS (converting the relative paths to absolute paths before merging).