()
| 454 | } |
| 455 | |
| 456 | function getRulesOrError(): [CSSRuleList | null, Error | null] { |
| 457 | try { |
| 458 | if (element.sheet == null) { |
| 459 | return [null, null]; |
| 460 | } |
| 461 | return [element.sheet.cssRules, null]; |
| 462 | } catch (err: any) { |
| 463 | return [null, err]; |
| 464 | } |
| 465 | } |
| 466 | |
| 467 | // NOTE: In Firefox, when link is loading, |
| 468 | // `sheet` property is not null, |
no outgoing calls
no test coverage detected