We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60098f2 commit bc02fa1Copy full SHA for bc02fa1
src/text-fragment-utils.js
@@ -547,8 +547,8 @@ const isNodeVisible =
547
const nodeStyle = window.getComputedStyle(elt);
548
// If the node is not rendered, just skip it.
549
if (nodeStyle.visibility === 'hidden' || nodeStyle.display === 'none' ||
550
- nodeStyle.height === 0 || nodeStyle.width === 0 ||
551
- nodeStyle.opacity === 0) {
+ parseInt(nodeStyle.height, 10) === 0 || parseInt(nodeStyle.width, 10) === 0 ||
+ parseInt(nodeStyle.opacity, 10) === 0) {
552
return false;
553
}
554
0 commit comments