Skip to content

Commit 819322f

Browse files
committed
Add webkitLineClamp style
1 parent 4379c03 commit 819322f

File tree

1 file changed

+32
-2
lines changed

1 file changed

+32
-2
lines changed

Feliz/Styles.fs

+32-2
Original file line numberDiff line numberDiff line change
@@ -2657,7 +2657,15 @@ type style =
26572657
unbox<string> xOffset + " " +
26582658
unbox<string> yOffset + " " +
26592659
unbox<string> zOffset
2660-
)
2660+
)
2661+
2662+
/// Limits the contents of a block to the specified number of lines.
2663+
///
2664+
/// It only works in combination with the `display` property set to `webkitBox` or `webkitInlineBox`
2665+
/// and the `webkitBoxOrient` property set to vertical.
2666+
/// https://developer.mozilla.org/en-US/docs/Web/CSS/-webkit-line-clamp
2667+
[<Obsolete("This is non-standard API and may stop being supported at any moment")>]
2668+
static member inline webkitLineClamp (lines: int) = Interop.mkStyle "WebkitLineClamp" lines
26612669

26622670
[<Erase>]
26632671
module style =
@@ -4241,7 +4249,29 @@ module style =
42414249
static member inline initial = Interop.mkStyle "display" "initial"
42424250
/// Inherits this property from its parent element.
42434251
static member inline inheritFromParent = Interop.mkStyle "display" "inherit"
4244-
4252+
[<Obsolete("This non-standard API may stop being supported at any moment")>]
4253+
static member inline webkitBox = Interop.mkStyle "display" "-webkit-box"
4254+
/// This is only used in combination with `webkitLineClamp` and `webkitBoxOrient`
4255+
[<Obsolete("This non-standard API may stop being supported at any moment")>]
4256+
static member inline webkitInlineBox = Interop.mkStyle "display" "-webkit-inline-box"
4257+
4258+
/// Sets whether an element lays out its contents horizontally or vertically.
4259+
/// https://developer.mozilla.org/en-US/docs/Web/CSS/box-orient
4260+
[<Erase; Obsolete("This is non-standard API and may stop being supported at any moment")>]
4261+
type webkitBoxOrient =
4262+
/// The box lays out its contents horizontally.
4263+
[<Obsolete("This is non-standard API and may stop being supported at any moment")>]
4264+
static member inline horizontal = Interop.mkStyle "WebkitBoxOrient" "horizontal"
4265+
/// The box lays out its contents vertically.
4266+
[<Obsolete("This is non-standard API and may stop being supported at any moment")>]
4267+
static member inline vertical = Interop.mkStyle "WebkitBoxOrient" "vertical"
4268+
/// The box displays its children along the inline axis.
4269+
[<Obsolete("This is non-standard API and may stop being supported at any moment")>]
4270+
static member inline inlineAxis = Interop.mkStyle "WebkitBoxOrient" "inline-axis"
4271+
/// The box displays its children along the block axis.
4272+
[<Obsolete("This is non-standard API and may stop being supported at any moment")>]
4273+
static member inline blockAxis = Interop.mkStyle "WebkitBoxOrient" "block-axis"
4274+
42454275
/// The cursor CSS property sets the type of cursor, if any, to show when the mouse pointer is over an element.
42464276
/// See documentation at https://developer.mozilla.org/en-US/docs/Web/CSS/cursor
42474277
[<Erase>]

0 commit comments

Comments
 (0)