auto = {
let style;
debugger;
if (this) {
style = this;
} else if ((style = document.styleSheets.item("cell-width")) && (style.title == "cell-width")) {
console.log("found");
} else {
style = document.createElement("style");
style.title = "cell-width";
(document.head ?? document.body).append(style);
if (window.CSS && CSS.registerProperty) {
let propDec = document.createElement("style");
style.title = "cell-width-declaration";
style.textContent =
`@property --cell-width {
syntax: "<length>";
inherits: true;
initial-value: 100vw;
}`;
(document.head ?? document.body).append(propDec);
}
}
style.textContent = `:root { --cell-width: ${width}px; }`;
}