Opened 13 years ago

Last modified 13 years ago

#10059 closed enhancement

MapCSS: Child selector — at Version 3

Reported by: plepe Owned by: team
Priority: normal Milestone: 14.05
Component: Core mappaint Version:
Keywords: mapcss child Cc:

Description (last modified by skyper)

According to the MapCSS specification ​osmwiki:MapCSS/0.2, the child selector has the form:
relation[type=route] way[highway]

JOSM uses another form:
relation[type=route] > way[highway]

I think the second form is actually superior, as you can add conditions on the link (e.g. role). (Note: According to the MapCSS specification the condition would be on the child selector).

Maybe it would advisable to support the basic MapCSS selectors too? Or work on a new MapCSS 0.3 version instead, which uses JOSM style selectors?

Change History (3)

comment:1 by Don-vip, 13 years ago

Component: Core → Core mappaint
Type: defect → enhancement

comment:2 by bastiK, 13 years ago

Yes, it would be nice to support this syntax as it is part of the standard and supported by many implementations.

(However I have no plans to work on it myself, at the moment.)

comment:3 by skyper, 13 years ago

Description: modified (diff)
Keywords: mapcss child added
Note: See TracTickets for help on using tickets.