Module style::values::generics::basic_shape
source · Expand description
CSS handling for the basic-shape
types that are generic over their ToCss
implementations.
Re-exports§
pub use self::GenericClipPath as ClipPath;
pub use self::GenericShapeOutside as ShapeOutside;
pub use self::GenericBasicShape as BasicShape;
pub use self::GenericInsetRect as InsetRect;
pub use self::GenericShapeRadius as ShapeRadius;
pub use self::GenericPolygon as Polygon;
pub use self::GenericShapeCommand as ShapeCommand;
Structs§
- Defines a pair of coordinates, representing a rightward and downward offset, respectively, from a specified reference point. Percentages are resolved against the width or height, respectively, of the reference box. https://drafts.csswg.org/css-shapes-2/#typedef-shape-coordinate-pair
- A generic type for representing the
polygon()
function - The path function.
- Coordinates for Polygon.
- The shape function defined in css-shape-2. shape() = shape(
? from , #)
Enums§
- This indicates that the larger or smaller, respectively, of the two possible arcs must be chosen. https://drafts.csswg.org/css-shapes-2/#typedef-shape-arc-size
- This indicates that the arc that is traced around the ellipse clockwise or counter-clockwise from the center. https://drafts.csswg.org/css-shapes-2/#typedef-shape-arc-sweep
- This indicates the command is absolute or relative. https://drafts.csswg.org/css-shapes-2/#typedef-shape-by-to
- The
. - A value for the
clip-path
property. - path() function or shape() function.
- This is a more general shape(path) command type, for both shape() and path().
- A value for the
shape-outside
property. - https://drafts.csswg.org/css-shapes-1/#typedef-shape-box
Functions§
- Skip the serialization if the author omits the box or specifies border-box.