(attr, value)
| 381 | } |
| 382 | |
| 383 | function createStyleNode(attr, value) { |
| 384 | const node = document.createElement('style'); |
| 385 | if (attr) { |
| 386 | node.setAttribute(attr, value || ''); |
| 387 | } |
| 388 | return node; |
| 389 | } |
| 390 | |
| 391 | function createValidRule(selector, position, elements) { |
| 392 | const rule = { |
no test coverage detected