import { Device } from "@siteimprove/alfa-device" ; import { Property , Style } from "@siteimprove/alfa-style" ; import { Predicate } from "@siteimprove/alfa-predicate" ; import { Element } from "@siteimprove/alfa-dom" ; import { hasComputedStyle } from "./has-computed-style" ; export function isWideEnough < N extends Property . Name > ( device , property , predicate ) { return ( element ) => hasComputedStyle ( property , ( value ) => hasComputedStyle ( "font-size" , predicate ( value ) , device ) ( element ) , device ) ( element ) ; }