[Geoserver-users] CSS styling and complex lines

Hello, I’ve been learning to use the CSS styling in GeoServer to create complex line symbols such as highway symbols. Although the line symbols look great on the map, I noticed that complex line symbols will appear twice in the map legend.

Here is an example of one of my symbols:

/* @title Interstate Highway */

[rdclass = ‘Primary’]{

stroke: #111111, #FFA000;

stroke-width: 5px, 4px;

z-index: 0,1;

}

-Again, this shows up twice in the legend- once for the 5px stroke, then again for the 4px stroke.

Has anyone found a workaround for this, or am I doing something wrong?