@alegendstale/holly-components
Version:
Reusable UI components created using lit
16 lines (15 loc) • 385 B
JavaScript
function n(t, l = globalThis.document) {
let e = l.createElement("div");
l.body.append(e);
let d = "foo(bar)";
e.style.setProperty(t, d);
let i = getComputedStyle(e).getPropertyValue(t), a = !0;
if (i === d) {
let r = e.appendChild(l.createElement("div"));
a = getComputedStyle(r).getPropertyValue(t) !== d;
}
return e.remove(), a;
}
export {
n as default
};