Cleanup
This commit is contained in:
parent
7048665f8e
commit
5ab38bb1c6
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user