//#region src/elements/ContainerInfo.ts
/**
* Helper function to get container info from any HTMLElement.
* Reads computed styles to determine display mode.
*/
function getContainerInfoFromElement(element) {
	if (!element) return {
		isContainer: false,
		displayMode: null,
		canContainChildren: false
	};
	const display = window.getComputedStyle(element).display;
	const isGrid = display === "grid" || display === "inline-grid";
	const isFlex = display === "flex" || display === "inline-flex";
	const isBlock = display === "block" || display === "inline-block";
	const isContainer = isGrid || isFlex || isBlock;
	let displayMode = null;
	if (isFlex) displayMode = "flex";
	else if (isGrid) displayMode = "grid";
	else if (isBlock) displayMode = "block";
	return {
		isContainer,
		displayMode,
		canContainChildren: isContainer
	};
}

//#endregion
export { getContainerInfoFromElement };
//# sourceMappingURL=ContainerInfo.js.map