(measure)
| 76 | |
| 77 | let badZoomedRects = null |
| 78 | export function hasBadZoomedRects(measure) { |
| 79 | if (badZoomedRects != null) return badZoomedRects |
| 80 | let node = removeChildrenAndAdd(measure, elt("span", "x")) |
| 81 | let normal = node.getBoundingClientRect() |
| 82 | let fromRange = range(node, 0, 1).getBoundingClientRect() |
| 83 | return badZoomedRects = Math.abs(normal.left - fromRange.left) > 1 |
| 84 | } |
no test coverage detected