Modify

Opened 13 days ago

Closed 13 days ago

Last modified 13 days ago

#15635 closed defect (invalid)

Undocumented MapCSS operator

Reported by: frodrigo Owned by: team
Priority: normal Milestone:
Component: Core validator Version:
Keywords: Cc:

Description

addresses.mapcss and combinations.mapcss validator contains the undocumented "=*" predicate operator.
The "*=" is in wiki, but nor in mapccs validator code.
See: https://josm.openstreetmap.de/wiki/Help/Styles/MapCSSImplementation#condition_selector_operators

Attachments (0)

Change History (6)

comment:1 Changed 13 days ago by Klumbumbus

I don't really understand what should be changed or added and where. Could you please explain it in more detail?

comment:2 Changed 13 days ago by frodrigo

Not sure. But the on the wiki there is the operator "*=" (star then equal), the mapCss code use "=*" (equal then star). If it's the same operator I think wiki is right and mapCCS files + JOSM are wrong. Shoul be confirmed by other MapCSS implementation.

(I'm writing a mapCSS parser)

comment:3 Changed 13 days ago by Klumbumbus

No, these are two different things:

  • *= is substring match like explained in the table you linked
  • =* or = * means that the following is not the value but another key. This is explained below the table.

comment:4 Changed 13 days ago by frodrigo

Ho Ok. Sorry I miss this point.

(BTW I found another undocumented feature, but it's obvious, >:pseudo_class is not in the wiki)

comment:5 Changed 13 days ago by frodrigo

Resolution: invalid
Status: newclosed

comment:6 in reply to:  4 Changed 13 days ago by Klumbumbus

Replying to frodrigo:

(BTW I found another undocumented feature, but it's obvious, >:pseudo_class is not in the wiki)

Thats a combination of the child selector and a pseudo class. I don't think this needs extra documentation as both are explained. (There is also already one example of this combination: relation:unclosed_multipolygon >:open_end node)

Modify Ticket

Change Properties
Set your email in Preferences
Action
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.