Kompatibilität für Chrome

This commit is contained in:
Turtle committed 2026-01-02 11:21:19 +01:00
1 parent 7a5fe69f29
commit 54368e20d0
4 files changed
+23 -13

No files matched your search

+1 -10
View File
@@ -10,16 +10,7 @@ function showOverlay(id) {
if (!elm) return;
const overlay = document.createElement("div");
const computedStyles = getComputedStyle(elm);
const defaultStyles = getDefaultComputedStyle(elm);
let styleString = "";
for (let style of computedStyles) {
if (style == "display") continue;
const computedValue = computedStyles.getPropertyValue(style);
const defaultValue = defaultStyles.getPropertyValue(style);
if (computedValue == defaultValue) continue;
styleString += `${style}: ${computedValue}; `;
}
const styleString = elm.getAttribute("style");
overlay.classList.add("overlay");
overlay.setAttribute("name", id);