Reputation: 30158
I was researching css attribute selectors to try and solve a problem of mine:
https://developer.mozilla.org/en-US/docs/CSS/Attribute_selectors
I have a bunch of dom elements which are all classed according to their depth in a json hierarchy (even though they are not nested in the DOM). So the dom might look like this:
<g class="node0">
<g class="node2">
<g class="node2">
<g class="node1">
<g class="node3">
I want to write a selector that targets g nodes with a class of node2 or higher. Is there a way to do this with pure css?
Upvotes: 2
Views: 113