MapCSS/validation does not behave as expected

Hi,
when applying this as vailidation I expected to have a match for this relation: Relation: 14956019 | OpenStreetMap.
Mapcss is:
relation[“network:type”=basic_network] [role=forward]way {
throwWarning: tr(“forward ways in relation”);
}
If I drop [role=forward] I have a match, but with it, there is a fail.

According to MapCSS/0.2 - OpenStreetMap Wiki section “Combining selectors” it should work.

When combining selectors like this, pseudo-tags are added to elements to allow you to access extra data. Here the role pseudo tag is added to the way object to indicate its role within the parent relation:

relation[type=route] way[role=proposed] /* Matches ways within a relation with type=route set, whose role is set to proposed */

Do I understand something wrong?
Cheers, JensUwe

JOSM uses a slightly different syntax, see Help/Styles/MapCSSImplementation – JOSM. Especially the child selector works differently, see Help/Styles/MapCSSImplementation – JOSM.

E.g. try:

relation[“network:type”=basic_network] >[role=forward]way {
    throwWarning: tr(“forward ways in relation”);
}

Tip: In expert mode by changing the input syntax on the left side you can switch to use mapcss in the JOSM search dialog.