import { Device } from "@siteimprove/alfa-device" ; import { Element } from "@siteimprove/alfa-dom" ; import { Predicate } from "@siteimprove/alfa-predicate" ; import { Property } from "@siteimprove/alfa-style" ; import { hasCascadedStyle } from "./has-cascaded-style" ; export function hasCascadedValueDeclaredInInlineStyleOf ( context , device , name ) { return hasCascadedStyle ( name , ( _ , source ) => source . some ( ( cascaded ) => context . style . some ( ( block ) => block . declaration ( ( declared ) => cascaded === declared ) . isSome ( ) ) ) , device ) ; }