katoikia-app/web-ui/web-react/node_modules/dom-helpers/esm/getComputedStyle.js

11 lines
318 B
JavaScript
Raw Normal View History

2022-07-06 04:15:11 +00:00
import ownerWindow from './ownerWindow';
/**
* Returns one or all computed style properties of an element.
*
* @param node the element
* @param psuedoElement the style property
*/
export default function getComputedStyle(node, psuedoElement) {
return ownerWindow(node).getComputedStyle(node, psuedoElement);
}