import { Shape , Keyword , Rectangle } from "@siteimprove/alfa-css" ; import { Parser } from "@siteimprove/alfa-parser" ; import { Property } from "../property" ; import { Value } from "../value" ; const { either , map } = Parser ; declare module "../property" { interface Longhands { clip : Property < Specified , Computed > ; } } deprecated internal export type Specified = Keyword < "auto" > | Shape < Rectangle , Keyword < "border-box" > > ; deprecated internal export type Computed = Specified ; deprecated internal export const parse = either ( Keyword . parse ( "auto" ) , map ( Rectangle . parse , ( rectangle ) => Shape . of ( rectangle , Keyword . of ( "border-box" ) ) ) ) ; /**
 *  https deprecated internal export default Property . register ( "clip" , Property . of < Specified , Computed > ( Keyword . of ( "auto" ) , parse , ( value , style ) => style . computed ( "position" ) . value . equals ( Keyword . of ( "absolute" ) ) || style . computed ( "position" ) . value . equals ( Keyword . of ( "fixed" ) ) ? value : Value . of ( Keyword . of ( "auto" ) ) ) ) ;