import { Keyword } from "@siteimprove/alfa-css" ; import { Property } from "../property" ; declare module "../property" { interface Longhands { "overflow-y" : Property < Specified , Computed > ; } } internal export type Specified = Keyword < "visible" > | Keyword < "hidden" > | Keyword < "clip" > | Keyword < "scroll" > | Keyword < "auto" > ; internal export type Computed = Specified ; internal export const parse = Keyword . parse ( "visible" , "hidden" , "clip" , "scroll" , "auto" ) ; /**
 *  https internal export default Property . register ( "overflow-y" , Property . of < Specified , Computed > ( Keyword . of ( "visible" ) , parse , ( overflowY , style ) => overflowY . map ( ( y ) => { if ( y . value !== "visible" && y . value !== "clip" ) { return y ; } const x = style . specified ( "overflow-x" ) . value ; if ( x . value === "visible" || x . value === "clip" ) { return y ; } return y . value === "visible" ? Keyword . of ( "auto" ) : Keyword . of ( "hidden" ) ; } ) ) ) ;