import type { CSSProperties, CSSPropertiesWithValues } from "../CSSProperties"; export type BorderImageLonghandsWithInitialValues = CSSPropertiesWithValues<{ borderImageSource: "none"; borderImageSlice: "100%"; borderImageRepeat: "stretch"; borderImageWidth: 1; borderImageOutset: 0; }>; export type BorderImageLonghands = Required< Pick >; export function borderImage( source: NonNullable, slice: NonNullable = "100%", repeat: NonNullable = "stretch", width: NonNullable = 1, outset: NonNullable = 0, ): BorderImageLonghands { return { borderImageSource: source, borderImageSlice: slice, borderImageRepeat: repeat, borderImageWidth: width, borderImageOutset: outset, }; }