import { Element } from "@siteimprove/alfa-dom" ; import { Device } from "@siteimprove/alfa-device" ; import { Predicate } from "@siteimprove/alfa-predicate" ; import { getPositioningParent } from "../expectation/get-positioning-parent" ; export function hasPositioningParent ( device , predicate ) { return ( element ) => getPositioningParent ( element , device ) . some ( predicate ) ; }