Opened 11 years ago
Last modified 9 years ago
#10215 new defect
MapCSS: make class selectors work for parent/child selectors
| Reported by: | simon04 | Owned by: | team |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Core | Version: | |
| Keywords: | mapcss | Cc: | lists@…, naoliv |
Description
Make the snipped from ticket:10120#comment:1 work. The difficulty is to determine the class water_area for the second primitive. Currently the matching process is as follows:
Consider as an example a dataset containing landuse=reservoir X=1 and landuse=reservoir Y=1 which overlap. When performing the matching process …
- MapCSS Environment is set empty.
landuse=reservoir X=1matches first rule rule.water_areais set in environment.- All possible crossing primitives are tested with an empty Environment (since the Environment associated to
landuse=reservoir X=1cannot be used) landuse=reservoir Y=1doesn't match the selectorarea:closed:areaStyle.water_areasincewater_areaisn't set in the environment
Attachments (0)
Change History (5)
comment:1 by , 11 years ago
comment:2 by , 11 years ago
| Cc: | added |
|---|
comment:3 by , 10 years ago
Ticket #11523 has been marked as a duplicate of this ticket.
The example from ticket:11523#comment:description
way[highway] > node { set .is_in_highway; } node.is_in_highway < area[!highway] { throwWarning: tr("you should not attach the area to the highway"); }
comment:4 by , 10 years ago
| Cc: | added |
|---|



In 7280/josm: