Színkorrekciók
This commit is contained in:
+9
@@ -0,0 +1,9 @@
|
||||
import { isCSSVar } from './is-css-var.mjs';
|
||||
|
||||
function setStyle(element, name, value) {
|
||||
isCSSVar(name)
|
||||
? element.style.setProperty(name, value)
|
||||
: (element.style[name] = value);
|
||||
}
|
||||
|
||||
export { setStyle };
|
||||
Reference in New Issue
Block a user