monks/shape_outside
The shape-outside CSS property defines a shape—which may be non-rectangular—around which adjacent inline content should wrap. By default, inline content wraps around its margin box; shape-outside provides a way to customize this wrapping, making it possible to wrap text around complex objects rather than rectangular boxes.
Values
pub const border_box: #(String, String)
- : Defines the shape enclosed by the outside border edge. The shape follows the normal border radius shaping rules for the outside of the border.
pub const closest_corner: #(String, String)
closest-corner value of shape-outside
pub const content_box: #(String, String)
- : Defines the shape enclosed by the outside content edge. Each corner radius of this box is the larger of `0` or `border-radius - border-width - padding`.
pub const farthest_corner: #(String, String)
farthest-corner value of shape-outside
pub fn length(value: monks_of_style.Length) -> #(String, String)
length value of shape-outside
pub const margin_box: #(String, String)
- : Defines the shape enclosed by the outside margin edge. The corner radii of this shape are determined by the corresponding {{cssxref("border-radius")}} and {{cssxref("margin")}} values. If the `border-radius / margin` ratio is `1` or more, then the margin box corner radius is `border-radius + margin`. If the ratio is less than `1`, then the margin box corner radius is `border-radius + (margin * (1 + (ratio - 1) ^ 3))`.
pub const none: #(String, String)
- : The float area is unaffected. Inline content wraps around the element’s margin box, like usual.
pub const padding_box: #(String, String)
- : Defines the shape enclosed by the outside padding edge. The shape follows the normal border radius shaping rules for the inside of the border.
pub const revert_layer: #(String, String)