(element, opt_isTimeBasedAnimation = true)
| 121 | * @return {boolean} |
| 122 | */ |
| 123 | export function isAnimationNone(element, opt_isTimeBasedAnimation = true) { |
| 124 | const noneValues = getInitialNoneValues(opt_isTimeBasedAnimation); |
| 125 | for (const property in noneValues) { |
| 126 | const value = getStyle(element, property); |
| 127 | const expectedValues = noneValues[property]; |
| 128 | if (!expectedValues.some((expectedValue) => value == expectedValue)) { |
| 129 | return false; |
| 130 | } |
| 131 | } |
| 132 | return true; |
| 133 | } |
| 134 | |
| 135 | /** |
| 136 | * Asserts that the given element is only visible to screen readers. |
no test coverage detected