import { Keyword , Token } from "@siteimprove/alfa-css" ; import { Parser } from "@siteimprove/alfa-parser" ; import { Property } from "../property" ; import { List } from "./value/list" ; const { map , delimited , option , separatedList } = Parser ; declare module "../property" { interface Longhands { "background-repeat-x" : Property < Specified , Computed > ; } } internal export type Specified = List < Specified . Item > ; internal export namespace Specified { export type Item = Keyword < "repeat" > | Keyword < "space" > | Keyword < "round" > | Keyword < "no-repeat" > ; } internal export type Computed = Specified ; internal export const parse = Keyword . parse ( "repeat" , "space" , "round" , "no-repeat" ) ; internal export const parseList = map ( separatedList ( parse , delimited ( option ( Token . parseWhitespace ) , Token . parseComma ) ) , ( repeats ) => List . of ( repeats , ", " ) ) ; /**
 *  https internal export default Property . register ( "background-repeat-x" , Property . of < Specified , Computed > ( List . of ( [ Keyword . of ( "repeat" ) ] ) , parseList , ( value ) => value ) ) ;