polygon symbol fill in css

I did try this for a polygon symbol in css styling

fill: url(‘./icons/{Geo_Symbol}’);
fill-mime: ‘image/svg+xml’;

but did not works

but if I put

fill: url(‘./icons/U_SVP.svg’); is ok

I use the same model for point symbol like this and works well

  mark: url('./icons/${Geo_Symbol}');
  mark-mime: 'image/svg+xml';

any suggestions for fill?

Thanks.

Hi @romapguide welcome to the GeoServer community :slight_smile:

I see on the fill attribute maybe the dollar character ($) is missing. Did you try using it on the variable declaration (same as you did well on the mark example) like:

fill: url(‘./icons/${Geo_Symbol}’);