#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
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:2 Changed 9 years ago by
Milestone: | → 14.01 |
---|
In 6736/josm: