Type Alias style::values::specified::basic_shape::ShapePosition

source ·
pub type ShapePosition = GenericPosition<LengthPercentage, LengthPercentage>;
Expand description

A specified value for at <position> in circle() and ellipse().

Aliased Type§

struct ShapePosition {
    pub horizontal: LengthPercentage,
    pub vertical: LengthPercentage,
}

Fields§

§horizontal: LengthPercentage

The horizontal component of position.

§vertical: LengthPercentage

The vertical component of position.

Trait Implementations§

source§

impl ToCss for ShapePosition

source§

fn to_css<W>(&self, dest: &mut CssWriter<'_, W>) -> Result
where W: Write,

Serialize self in CSS syntax, writing to dest.
source§

fn to_css_string(&self) -> String

Serialize self in CSS syntax and return a string. Read more