Modify

Opened 10 years ago

Closed 9 years ago

Last modified 9 years ago

#8568 closed defect (fixed)

MapCSS rule applied several times if several selectors applies

Reported by: imagic Owned by: team
Priority: normal Milestone: 14.01
Component: Core mappaint Version: latest
Keywords: Cc:

Description

If for a single rule several selectors are given and more than one of them applies, the rule is also applied several times (once for each selector that applies). Correct behaviour would be that a rule is only applied once if one or more selectors apply.

Example:
way
{ width: 5; }

way[keyA], way[keyB]
{ width: eval(prop(width)+10); }

In this example ways without keyA or keyB are rendered with width 5 (correct). If either keyA or keyB is present, the way is rendered with width 15 (correct). But if both keyA and keyB are present, the way is rendered with width 25, which is incorrect.

Attachments (0)

Change History (2)

comment:1 Changed 9 years ago by simon04

Resolution: fixed
Status: newclosed

In 6736/josm:

fix #8568 - MapCSS rule applied several times if several selectors applies

comment:2 Changed 9 years ago by simon04

Milestone: 14.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.