186 | | === Child selector === |
187 | | If a node is part of a way, we say that it is a ''child'' of this way. Similarly, if a node, a way, or a relation is a member of a relation, we say, that it is a ''child'' of this relation. |
188 | | |
189 | | In MapCSS you can use a '''child selector''' which matches only if both the parent and the child object match. |
190 | | |
191 | | Example: |
| 186 | === Селектор Child === |
| 187 | Если точка является частью линии, мы называем её ''потомком'' (child) этой линии. Аналогично, если точка, линия или отношение является участником отношения, то мы называем их ''потомками'' этого отношения. |
| 188 | |
| 189 | В MapCSS можно использовать '''селектор потомков''', которому соответствует объект, только если и родительский объект и его потомок соответствуют ему. |
| 190 | |
| 191 | Пример: |
203 | | * The functions ''prop()'' and ''is_prop_set()'' are only supported on the right side of the > sign. |
204 | | * The functions ''parent_tag'' and ''parent_tags'' (see below) can be used to access tags from the parent(s). |
205 | | * For compatibility with the MapCSS 0.2 standard, `relation[type=route][route=foot] way {/*...*/}`, without the greather-than-sign `>` is supported, too. However, no [[#Linkselector]] may be specified in this case. |
| 203 | * Функции ''prop()'' и ''is_prop_set()'' поддерживаются только на стороне справа от знака >. |
| 204 | * Функции ''parent_tag'' и ''parent_tags'' (см. ниже) можно использовать для доступа к тегам из родителя(ей). |
| 205 | * Для совместимости со стандартом MapCSS 0.2, `relation[type=route][route=foot] way {/*...*/}`, без знака `>` также поддерживается. However, no [[#Linkselector]] may be specified in this case. |