pub type Position = Position<HorizontalPosition, VerticalPosition>;
Expand description
The computed value of a CSS <position>
Aliased Type§
#[repr(C)]pub struct Position {
pub horizontal: LengthPercentage,
pub vertical: LengthPercentage,
}
Fields§
§horizontal: LengthPercentage
The horizontal component of position.
vertical: LengthPercentage
The vertical component of position.
Implementations§
Trait Implementations§
Source§impl ToCss for Position
impl ToCss for Position
Source§fn to_css<W>(&self, dest: &mut CssWriter<'_, W>) -> Resultwhere
W: Write,
fn to_css<W>(&self, dest: &mut CssWriter<'_, W>) -> Resultwhere
W: Write,
Serialize
self
in CSS syntax, writing to dest
.Source§fn to_css_string(&self) -> String
fn to_css_string(&self) -> String
Serialize
self
in CSS syntax and return a string. Read moreSource§fn to_css_cssstring(&self) -> String
fn to_css_cssstring(&self) -> String
Serialize
self
in CSS syntax and return a CssString. Read more