csscomb / csscomb.js

CSS coding style formatter
http://csscomb.com/
MIT License
3.28k stars 460 forks source link

Unstable Sort order breaks font-Family #623

Open ChristianLuxem opened 4 years ago

ChristianLuxem commented 4 years ago

Hello, i want to support also Internet Explorer and therefore i have to do the following things for Fonts:

@font-face {
    font-family: "test";
    src: url("#test.eot");
    src: url("test.eot?#iefix") format("embedded-opentype"),
    url("test.woff") format("woff"),
    url("test.ttf") format("truetype"),
    url("test.otf") format("opentype"),
    url("test.svg") format("svg");
}

What CSSComb does, is the following: It will do an unstable sort algorithm and therefore the first "src" will sometimes be under the other things. That is bad, because of that the Font will not work properly in Chrome.

How can i fix that?