I will look into it but ...
a combinator is technically a css selector and not a css class. Finding classes is one thing that only requires that elements class name. I could add the element name info but as you can have multiple descendants that would be an issue.
So technically, to make this work correctly I would the have to parse the entire xhtml file and try matching it against all linked css selectors and then track their specificity to find the highest one.
Unfortunately, that is not something easily done.
If you right click on the class="ack" on a div it should be able to find the div.ack if no ack exists in the css. That should work now if div.ack is a selector just not when it is only part of a combinator selector.
Perhaps I could extend that to match if just starting a selector? Would that help?
But right clicking in its child p (descendant combinator selector (or child)) and going to its selector would be a real problem.
It looks simple but it is not. That is why we restrict this feature to classes which is the most common case and not to selectors in general.
Last edited by KevinH; 12-10-2023 at 10:49 AM.
|