import { Keyword , Length } from "@siteimprove/alfa-css" ; import { Parser } from "@siteimprove/alfa-parser" ; import { Property } from "../property" ; import { Resolver } from "../resolver" ; const { either } = Parser ; declare module "../property" { interface Longhands { "word-spacing" : Property < Specified , Computed > ; } } internal export type Specified = Keyword < "normal" > | Length ; internal export type Computed = Length < "px" > ; internal export const parse = either ( Keyword . parse ( "normal" ) , Length . parse ) ; /**
 *  https internal export default Property . register ( "word-spacing" , Property . of < Specified , Computed > ( Length . of ( 0 , "px" ) , parse , ( wordSpacing , style ) => wordSpacing . map ( ( wordSpacing ) => { switch ( wordSpacing . type ) { case "keyword" : return Length . of ( 0 , "px" ) ; case "length" : return Resolver . length ( wordSpacing , style ) ; } } ) , { inherits : true , } ) ) ;