Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#10059 closed enhancement (fixed)

MapCSS: Child selector

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?

Attachments (0)

Change History (5)

comment:1 Changed 9 years ago by Don-vip

Component: CoreCore mappaint
Type: defectenhancement

comment:2 Changed 9 years ago by bastiK

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 Changed 9 years ago by skyper

Description: modified (diff)
Keywords: mapcss child added

comment:4 Changed 9 years ago by simon04

Resolution: fixed
Status: newclosed

In 7166/josm:

fix #10059 - MapCSS, child selector: make greater-than-sign optional

The following selectors are equivalent:
relation[type=route] way[highway]
relation[type=route] > way[highway]

comment:5 Changed 9 years ago by Don-vip

Milestone: 14.05

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.