css_ruleset_parser.ts view source
(selector: string, class_pos: number): number import {find_compound_end} from '@fuzdev/fuz_css/css_ruleset_parser.js'; Finds the end position of the compound selector containing the class at class_pos. A compound selector is a sequence of simple selectors without combinators.
selector
the CSS selector string
stringclass_pos
position of the . in .class_name
numberreturns
number position where state modifiers should be inserted (before any pseudo-element)