import{Node as t}from"../../../postcss/lib/postcss.mjs";import{isDocument as r}from"./typeGuards.mjs";function e(e){let n=e;for(;n;){if(r(n))return!0;if("document"in n&&n.document instanceof t&&r(n.document))return!0;if(!n.parent)break;n=n.parent}return!1}export{e as default};