diff --git a/src/core/element.js b/src/core/element.js index 39c66b1..535fb7d 100644 --- a/src/core/element.js +++ b/src/core/element.js @@ -283,7 +283,7 @@ export default class Element { } /** - * Get an element CSS property on the page + * Get current element's CSS attribute value * @param {string} property * @returns string * @private diff --git a/types/index.d.ts b/types/index.d.ts index cadf1de..d32652b 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -284,6 +284,24 @@ declare module 'driver.js' { * Adds the highlight classes to current element if required */ private addHighlightClasses(): void; + + /** + * Walks through the parents of the current element and fixes + * the stacking context + */ + private fixStackingContext(): void; + + /** + * Checks if we can make the current element relative or not + * @return {boolean} + */ + private canMakeRelative(): boolean; + + /** + * Get current element's CSS attribute value + * @return {string} + */ + private getStyleProperty(): string; } class Overlay {