[Geoserver-devel] Funny thing about CSS translation, multiple fts and scale dependencies

Hi,
I would expected that the following:

[@scale < 75000] {
stroke: #7F7F7F;
stroke-linecap: round;
stroke-linejoin: round;
}

[@scale > 10000] {
stroke-width: 2;
}

[@scale < 10000] {
stroke: #7F7F7F, white;
stroke-width: 17, 12;
z-index: 0, 1;
}

would have generated two feature type styles, one of which has rules active only at scale den < 10000, but instead
it generates just one fts and forgets about the inner white line.

The following one works, but has more repetitions:

[@scale < 75000] [@scale > 10000] {
stroke: #7F7F7F;
stroke-width: 2;
stroke-linecap: round;
stroke-linejoin: round;
}

[@scale < 10000] {
stroke: #7F7F7F, white;
stroke-width: 17, 12;
z-index: 0, 1;
stroke-linecap: round;
stroke-linejoin: round;
}

What do you think, is this a bug in the code, or in my understanding of CSS?

Cheers
Andrea

==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for more information.

Ing. Andrea Aime

@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it