From 5ab38bb1c612884b050e81b4b2d5279374e0d735 Mon Sep 17 00:00:00 2001 From: PMKuipers Date: Mon, 17 Jul 2023 17:40:54 +0200 Subject: [PATCH] Cleanup --- amd/src/simpleline.js | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/amd/src/simpleline.js b/amd/src/simpleline.js index fa20d9e..a7bb4c9 100644 --- a/amd/src/simpleline.js +++ b/amd/src/simpleline.js @@ -67,32 +67,6 @@ const getElementPosition = (el, reference) => { } }; -/** - * Check if an element is a containing element and can thus be a parent for absolute positioning - * Which is the cas if the element has - * 1 A position value other than static (fixed, absolute, relative, or sticky). - * 2 A transform or perspective value other than none - * 3 A will-change value of transform or perspective - * 4 A filter value other than none or a will-change value of filter (only works on Firefox) - * 5 A contain value of layout, paint, strict or content (e.g. contain: paint;) - * 6 A container-type value other than normal - * 7 A backdrop-filter other than none (e.g. backdrop-filter: blur(10px);) - * @param {HTMLElement} el - * @returns {Boolean} - */ -/* -function isContainingElement(el) { - const cssStyle = getComputedStyle(el); - return ["fixed","absolute","relative","sticky",].includes(cssStyle.position) - || cssStyle.transform !== "none" - || cssStyle.perspective !== "none" - || ["transform","perspective"].includes(cssStyle.willChange) - || cssStyle.filter !== "none" - || cssStyle.contain == "paint" - || cssStyle.backdropFilter !== "none"; -} -*/ - export class SimpleLine { static idCounter = 0;