UNPKG

@puppedo/atoms

Version:
32 lines (27 loc) 663 B
--- name: checkElementInViewport type: atom allowResults: ['нетуЕго'] needSelectors: ['parent', 'target'] runTest: - getCoordsElement: bindSelectors: { selector: parent } result: xBody: x yBody: y heightBody: height widthBody: width - logTest: d: { logData: true } - getCoordsElement: bindSelectors: { selector: target } result: xElement: x yElement: y heightElement: height widthElement: width - logTest: d: { logData: true } - blank: dF: elementNotInViewport: 'xBody + heightBody <= xElement || yBody + widthBody <= yElement'