import { Token , Keyword } from "@siteimprove/alfa-css" ; import { Parser } from "@siteimprove/alfa-parser" ; import { Property } from "../property" ; import { Tuple } from "./value/tuple" ; const { delimited , map , option , takeBetween } = Parser ; declare module "../property" { interface Longhands { "border-image-repeat" : Property < Specified , Computed > ; } } internal export type Specified = Tuple < [ vertical : Specified . Item , horizontal : Specified . Item ] > ; internal export namespace Specified { export type Item = Keyword < "stretch" > | Keyword < "repeat" > | Keyword < "round" > | Keyword < "space" > ; } internal export type Computed = Specified ; internal export const parse = map ( takeBetween ( delimited ( option ( Token . parseWhitespace ) , Keyword . parse ( "stretch" , "repeat" , "round" , "space" ) ) , 1 , 2 ) , ( [ vertical , horizontal = vertical ] ) => Tuple . of ( vertical , horizontal ) ) ; /**
 *  https internal export default Property . register ( "border-image-repeat" , Property . of < Specified , Computed > ( Tuple . of ( Keyword . of ( "stretch" ) , Keyword . of ( "stretch" ) ) , parse , ( value ) => value ) ) ;