From 95aa06a3d24895206d6deb53e494028d2dcacbb4 Mon Sep 17 00:00:00 2001 From: damianfral Date: Mon, 30 Dec 2019 18:57:04 +0100 Subject: [PATCH 1/2] Add objectPosition and objectPositions. --- src/Css.re | 9 +++++++++ src/Css.rei | 27 +++++++++++++++++++++++++++ 2 files changed, 36 insertions(+) diff --git a/src/Css.re b/src/Css.re index f54fbbf..372f025 100644 --- a/src/Css.re +++ b/src/Css.re @@ -782,6 +782,15 @@ let objectFit = x => }, ); +let objectPosition = ( x ) => + D("objectPosition", string_of_backgroundposition(x)); + +let objectPositions = ( op ) => + D( + "objectPosition", + op->Belt.List.map(string_of_backgroundposition)->join(", "), + ); + let opacity = x => D("opacity", Js.Float.toString(x)); let outline = (size, style, color) => diff --git a/src/Css.rei b/src/Css.rei index ef5c63d..d4e60a4 100644 --- a/src/Css.rei +++ b/src/Css.rei @@ -716,6 +716,33 @@ let minWidth: */ let objectFit: [< Types.ObjectFit.t | Types.Cascading.t] => rule; +let objectPosition: + [< + Types.BackgroundPosition.t + | `hv( + [ Types.BackgroundPosition.X.t | Types.Length.t], + [ Types.BackgroundPosition.Y.t | Types.Length.t], + ) + | Types.Length.t + | Types.Cascading.t + ] => + rule; + +let objectPositions: + list( + [< + Types.BackgroundPosition.t + | `hv( + [ Types.BackgroundPosition.X.t | Types.Length.t], + [ Types.BackgroundPosition.Y.t | Types.Length.t], + ) + | Types.Length.t + | Types.Cascading.t + ], + ) => + rule; + + let opacity: float => rule; let order: int => rule; From 1503362955904f55ce5a3e16de792a52052b0d11 Mon Sep 17 00:00:00 2001 From: damianfral Date: Tue, 21 Jan 2020 01:18:22 +0100 Subject: [PATCH 2/2] Remove objectPositions. --- src/Css.re | 6 ------ src/Css.rei | 15 --------------- 2 files changed, 21 deletions(-) diff --git a/src/Css.re b/src/Css.re index 372f025..b34a112 100644 --- a/src/Css.re +++ b/src/Css.re @@ -785,12 +785,6 @@ let objectFit = x => let objectPosition = ( x ) => D("objectPosition", string_of_backgroundposition(x)); -let objectPositions = ( op ) => - D( - "objectPosition", - op->Belt.List.map(string_of_backgroundposition)->join(", "), - ); - let opacity = x => D("opacity", Js.Float.toString(x)); let outline = (size, style, color) => diff --git a/src/Css.rei b/src/Css.rei index d4e60a4..30f7d60 100644 --- a/src/Css.rei +++ b/src/Css.rei @@ -728,21 +728,6 @@ let objectPosition: ] => rule; -let objectPositions: - list( - [< - Types.BackgroundPosition.t - | `hv( - [ Types.BackgroundPosition.X.t | Types.Length.t], - [ Types.BackgroundPosition.Y.t | Types.Length.t], - ) - | Types.Length.t - | Types.Cascading.t - ], - ) => - rule; - - let opacity: float => rule; let order: int => rule;