View Single Post
Old 12-10-2023, 12:15 PM   #25
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,809
Karma: 6000000
Join Date: Nov 2009
Device: many
It is not a string search in the css file. Instead the css file is fully parsed and multiple selectors are split to create individual versions and the parser is used to find the line of the source code where that selector is defined.

But I could change the "match a selector" code to either be a full match or to match the first part of a combinator selector - just not later targets in that combinator as that would require a full parsing of the xhtml as well as specificity calculations.

Would that help?

Quote:
Originally Posted by Turtle91 View Post
I was thinking something along the lines of a standard "find:ack" with all css stylesheets selected. That only finds the letter combination of “ack” so somehow adding the element type might help?? eg. div. or p.

Of course, that is just my uninformed thought…

Last edited by KevinH; 12-10-2023 at 01:04 PM.
KevinH is offline   Reply With Quote