The starting text of the style rules to return
The CSSStyleSheet containing the rules to select
The selected style rules
import { selectAll } from 'deleight/css';
const cssStyleSheet = await loadStyle('component1.css');
const spanRules = [...selectAll('span', cssStyleSheet)];
// `selectAll` returns a generator!
Selects all the style rules in the stylesheet whose cssText begin with any of the specified selectors.