function e(e){return"rule"===e.type||"atrule"===e.type?e:"root"===e.parent?.type&&e.parent?.raws.isRuleLike||e.parent?.document?.nodes?.some(e=>"root"===e.type)?e.parent:e}export{e as getContainingNode};