MCPcopy Index your code
hub / github.com/SeleniumHQ/selenium / getEffectiveStyle

Function getEffectiveStyle

javascript/atoms/typescript/is-displayed.ts:90–102  ·  view source on GitHub ↗
(elem: Element, propertyName: string)

Source from the content-addressed store, hash-verified

88 }
89
90 function getEffectiveStyle(elem: Element, propertyName: string): string | null {
91 var computed = computedStyleCache.get(elem);
92 if (computed === undefined) {
93 var win = elem.ownerDocument.defaultView;
94 computed = win ? (win.getComputedStyle(elem) || null) : null;
95 computedStyleCache.set(elem, computed);
96 }
97 if (!computed) {
98 return null;
99 }
100 var value = computed.getPropertyValue(propertyName);
101 return value || null;
102 }
103
104 function getOpacity(elem: Element): number {
105 var opacityStyle = getEffectiveStyle(elem, 'opacity');

Callers 8

getOpacityFunction · 0.85
getOverflowStateFunction · 0.85
canBeOverflowedFunction · 0.85
getOverflowParentFunction · 0.85
getOverflowStylesFunction · 0.85
isShownInternalFunction · 0.85
positiveSizeFunction · 0.85
displayedFunction · 0.85

Calls 2

getMethod · 0.65
setMethod · 0.65

Tested by

no test coverage detected