Skip to content

Add webkitLineClamp style #614

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 31 additions & 1 deletion Feliz/Styles.fs
Original file line number Diff line number Diff line change
Expand Up @@ -3129,6 +3129,14 @@ type style =
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 "WebkitLineClamp" lines

/// Sets the color of the scrollbar track and thumb.
/// The track refers to the background of the scrollbar, which
/// is generally fixed regardless of the scrolling position.
Expand Down Expand Up @@ -4879,7 +4887,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 "WebkitBoxOrient" "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 "WebkitBoxOrient" "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 "WebkitBoxOrient" "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 "WebkitBoxOrient" "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