OWL ITS + 탐지시스템(인터넷 진흥원)
이민희
2021-11-12 c8d436c6d85ea6f1e93c838a8b5a4690d0f075e4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/**
 * Get CSS computed property of the given element
 * @method
 * @memberof Popper.Utils
 * @argument {Eement} element
 * @argument {String} property
 */
export default function getStyleComputedProperty(element, property) {
  if (element.nodeType !== 1) {
    return [];
  }
  // NOTE: 1 DOM access here
  const css = getComputedStyle(element, null);
  return property ? css[property] : css;
}