Skip to content

Commit

Permalink
Add webkitLineClamp style
Browse files Browse the repository at this point in the history
  • Loading branch information
Linschlager committed Jun 4, 2024
1 parent 4379c03 commit 4fc410f
Showing 1 changed file with 32 additions and 2 deletions.
34 changes: 32 additions & 2 deletions Feliz/Styles.fs
Original file line number Diff line number Diff line change
Expand Up @@ -2657,7 +2657,15 @@ type style =
unbox<string> xOffset + " " +
unbox<string> yOffset + " " +
unbox<string> zOffset
)
)

/// Limits the contents of a block to the specified number of lines.
///
/// It only works in combination with the `display` property set to `webkitBox` or `webkitInlineBox`
/// and the `webkitBoxOrient` property set to vertical.
/// https://developer.mozilla.org/en-US/docs/Web/CSS/-webkit-line-clamp
[<Obsolete("This is non-standard API and may stop being supported at any moment")>]
static member inline webkitLineClamp (lines: int) = Interop.mkStyle "-webkit-line-clamp" lines

[<Erase>]
module style =
Expand Down Expand Up @@ -4241,7 +4249,29 @@ module style =
static member inline initial = Interop.mkStyle "display" "initial"
/// Inherits this property from its parent element.
static member inline inheritFromParent = Interop.mkStyle "display" "inherit"

[<Obsolete("This non-standard API may stop being supported at any moment")>]
static member inline webkitBox = Interop.mkStyle "display" "-webkit-box"
/// This is only used in combination with `webkitLineClamp` and `webkitBoxOrient`
[<Obsolete("This non-standard API may stop being supported at any moment")>]
static member inline webkitInlineBox = Interop.mkStyle "display" "-webkit-inline-box"

/// Sets whether an element lays out its contents horizontally or vertically.
/// https://developer.mozilla.org/en-US/docs/Web/CSS/box-orient
[<Erase; Obsolete("This is non-standard API and may stop being supported at any moment")>]
type webkitBoxOrient =
/// The box lays out its contents horizontally.
[<Obsolete("This is non-standard API and may stop being supported at any moment")>]
static member inline horizontal = Interop.mkStyle "-webkit-box-orient" "horizontal"
/// The box lays out its contents vertically.
[<Obsolete("This is non-standard API and may stop being supported at any moment")>]
static member inline vertical = Interop.mkStyle "-webkit-box-orient" "vertical"
/// The box displays its children along the inline axis.
[<Obsolete("This is non-standard API and may stop being supported at any moment")>]
static member inline inlineAxis = Interop.mkStyle "-webkit-box-orient" "inline-axis"
/// The box displays its children along the block axis.
[<Obsolete("This is non-standard API and may stop being supported at any moment")>]
static member inline blockAxis = Interop.mkStyle "-webkit-box-orient" "block-axis"

/// The cursor CSS property sets the type of cursor, if any, to show when the mouse pointer is over an element.
/// See documentation at https://developer.mozilla.org/en-US/docs/Web/CSS/cursor
[<Erase>]
Expand Down

0 comments on commit 4fc410f

Please sign in to comment.