Modify

Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#12267 closed defect (fixed)

match=0 is not working in MapCSS style, but match="0" is

Reported by: anonymous Owned by: team
Priority: normal Milestone: 16.01
Component: Core Version: tested
Keywords: mapcss Cc: naoliv, Dakon

Attachments (0)

Change History (5)

comment:1 Changed 2 years ago by simon04

Are you relating to [frequency=0] in the linked MapCSS file?

comment:2 Changed 2 years ago by naoliv

Cc: naoliv added
Keywords: mapcss added

I am not the one who reported it, but a small test:

Have some object with foo=0 and validate with this:

*[foo=0] {
        throwWarning: tr("foo");
}

Note how no warning appear.
Now change foo=0 to foo="0" and validate it again.

comment:3 Changed 2 years ago by Dakon

Cc: Dakon added

comment:4 Changed 2 years ago by simon04

Resolution: fixed
Status: newclosed

In 9247/josm:

fix #12267 - MapCSS conditions does not handle unquoted 0 value

Such as in [frequency=0].

comment:5 Changed 2 years ago by simon04

Milestone: 16.01

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.