Modify ↓
Opened 8 years ago
Last modified 5 years ago
#14290 new defect
Parent selector is selecting both child and parent
Reported by: | naoliv | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Core validator | Version: | |
Keywords: | mapcss parent child selector | Cc: | Klumbumbus |
Description
Use the example from https://josm.openstreetmap.de/wiki/Help/Styles/MapCSSImplementation#Parentselector
node[traffic_calming] < way[highway] { throwWarning: tr("match"); }
with the attached example and see how it's matching/selecting 2 objects (the way (parent) and the node (child))
The description says that In contrast to the child selector, the parent object will be "selected"
Shouldn't only the way be selected here? ie, we should see a warning about one object only (the way)
JOSM:
URL:http://josm.openstreetmap.de/svn/trunk Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b Last:Changed Date: 2017-01-25 02:17:36 +0100 (Wed, 25 Jan 2017) Build-Date:2017-01-25 02:33:55 Revision:11490 Relative:URL: ^/trunk Identification: JOSM/1.5 (11490 en) Linux Debian GNU/Linux 9.0 (stretch) Memory Usage: 314 MB / 10206 MB (52 MB allocated, but free) Java version: 1.8.0_111-8u111-b14-3-b14, Oracle Corporation, OpenJDK 64-Bit Server VM Screen: :0.0 1600x900, :0.1 1280x1024 Maximum Screen Size: 1600x1024 Java package: openjdk-8-jre:amd64-8u111-b14-3 Java ATK Wrapper package: libatk-wrapper-java:all-0.33.3-13 VM arguments: [-Dawt.useSystemAAFontSettings=on] Program arguments: [--language=en] Dataset consistency test: No problems found
Attachments (1)
Change History (4)
by , 8 years ago
Attachment: | example.osm added |
---|
comment:1 by , 8 years ago
Cc: | added |
---|
comment:2 by , 6 years ago
comment:3 by , 5 years ago
Keywords: | mapcss parent child selector added |
---|
Note:
See TracTickets
for help on using tickets.
I did a test with this and now it's selecting only the parent:
src/org/openstreetmap/josm/gui/mappaint/mapcss/Selector.java
;