Színkorrekciók
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
||||
import { isCSSVar } from './is-css-var.mjs';
|
||||
|
||||
function getComputedStyle(element, name) {
|
||||
const computedStyle = window.getComputedStyle(element);
|
||||
return isCSSVar(name)
|
||||
? computedStyle.getPropertyValue(name)
|
||||
: computedStyle[name];
|
||||
}
|
||||
|
||||
export { getComputedStyle };
|
||||
Reference in New Issue
Block a user