csscomb.js icon indicating copy to clipboard operation
csscomb.js copied to clipboard

Unstable Sort order breaks font-Family

Open ChristianLuxem opened this issue 6 years ago • 0 comments
trafficstars

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?

ChristianLuxem avatar Oct 22 '19 09:10 ChristianLuxem