The starting text of the style rules to return
The CSSStyleSheet containing the rules to select
The selected style rule
import { selectFirst } from 'deleight/css';
const cssStyleSheet = await loadStyle('component1.css');
const firstSpanRule = selectFirst('span', cssStyleSheet)
Selects the first style rule in the stylesheet whose cssText begins with any of the specified selectors.