bug. definitely bug.  While selector order in HTML/CSS is significant, it
doesn't matter at all in GeoServer CSS (because HTML/CSS uses order to
represent nesting of HTML elements, but there's no sensible analog to nested
HTML elements in GeoServer's simple feature model).

I am fairly busy with FOSS4G activities this week, but I will try to look
into this further next week (or maybe the following, depending on jet lag :)
).  For now, I hope the workaround you have discovered will be sufficient.

--
David Winslow
OpenGeo - http://opengeo.org/

ps: By way of explanation, the CSS module does a lot of work enumerating all
possible combinations of CSS-rules and combining their filters rules to
generate an equivalent set of mutually exclusive SLD rules.  Since there are
a *lot* of such combinations (for those counting, a number that grows *
exponentially* with the number of rules in the original CSS stylesheet), I
try to identify unsatisfiable combinations (such as "[a=1] [a=2]") as early
as possible, and avoid investigating further combinations based on
unsatisfiable filter combinations. Bugs like this usually indicate a
false-positive in the code that evaluates CSS-rule combinations to identify
whether they should be thrown out due to not matching any features.

On Wed, Sep 8, 2010 at 7:47 AM, Ian Turton <[email protected]> wrote:

> I'm not sure if this is a bug, a feature or that I don't fully
> understand what is going on. If I create a style like:
>
> /* @title Residential Road*/
> [...@scale < 100000] [highway='residential'],
> [...@scale < 100000] [highway='unclassified'] {
>  stroke: grey, white;
>  stroke-width: 3px, 1px;
>  stroke-z-index: 0, 6;
> }
>
> The unclassified roads are not drawn but if I do
>
> /* @title Residential Road*/
> [...@scale < 100000] [highway='residential'],
> [highway='unclassified'] [...@scale < 100000] {
>  stroke: grey, white;
>  stroke-width: 3px, 1px;
>  stroke-z-index: 0, 6;
> }
>
> then they are drawn.
>
> Any ideas?
>
> Ian
>
>
> --
> Ian Turton
>
>
> ------------------------------------------------------------------------------
> This SF.net Dev2Dev email is sponsored by:
>
> Show off your parallel programming skills.
> Enter the Intel(R) Threading Challenge 2010.
> http://p.sf.net/sfu/intel-thread-sfd
> _______________________________________________
> Geoserver-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to