Functions similarly to querySelectorAll, but for selecting style rules in a CSS stylesheet object. All rules that start with any of the selectors are selected.
Optional
const firstSpanRule = ruleSelectorAll('span', document.getElementsByTagName('style')[0], true)[0]; Copy
const firstSpanRule = ruleSelectorAll('span', document.getElementsByTagName('style')[0], true)[0];
Functions similarly to querySelectorAll, but for selecting style rules in a CSS stylesheet object. All rules that start with any of the selectors are selected.