Closed joseberlines closed 3 years ago
From https://js.cytoscape.org/#style
For simplicity and ease of use, specificity rules are completely ignored in stylesheets. For a given style property for a given element, the last matching selector wins.
and the style is ordered so I would expect the node to be green.
Can we close @joseberlines ?
Imagine I have three nodes: BER with classes Germany EU PAR with class EU MIL with class EU
if I have a style like: [{'selector': 'node', 'background-color': 'yellow'} {'selector': 'node[classes="EU"]', 'style': {'background-color': 'blue'}}, {'selector': 'node[classes="Germany"]', 'style': {'background-color': 'green']
Which should be the colour in case of conflict? are the styles apply strictly in order of appearance in the list? IN which case BER for being node is yellow, for being EU is blue, and for being Germany is green. So BER will rest Green.