import { Token } from "@siteimprove/alfa-css" ; import { Parser } from "@siteimprove/alfa-parser" ; import { Property } from "../property" ; import * as Top from "./top" ; const { map , option , delimited , takeBetween } = Parser ; declare module "../property" { interface Shorthands { inset : Property . Shorthand < "top" | "right" | "bottom" | "left" > ; } } internal export const parse = takeBetween ( delimited ( option ( Token . parseWhitespace ) , Top . parse ) , 1 , 4 ) ; /**
 *  https internal export default Property . registerShorthand ( "inset" , Property . shorthand ( [ "top" , "right" , "bottom" , "left" ] , map ( parse , ( [ top , right = top , bottom = top , left = right ] ) => [ [ "top" , top ] , [ "right" , right ] , [ "bottom" , bottom ] , [ "left" , left ] , ] ) ) ) ;