pub type Position = Position<HorizontalPosition, VerticalPosition>;
Expand description
The specified value of a CSS <position>
Aliased Type§
struct Position {
pub horizontal: PositionComponent<HorizontalPositionKeyword>,
pub vertical: PositionComponent<VerticalPositionKeyword>,
}
Fields§
§horizontal: PositionComponent<HorizontalPositionKeyword>
The horizontal component of position.
vertical: PositionComponent<VerticalPositionKeyword>
The vertical component of position.
Implementations§
source§impl Position
impl Position
sourcepub fn parse_three_value_quirky<'i, 't>(
context: &ParserContext<'_>,
input: &mut Parser<'i, 't>,
allow_quirks: AllowQuirks,
) -> Result<Self, ParseError<'i>>
pub fn parse_three_value_quirky<'i, 't>( context: &ParserContext<'_>, input: &mut Parser<'i, 't>, allow_quirks: AllowQuirks, ) -> Result<Self, ParseError<'i>>
Parses a <bg-position>
, with quirks.
sourcefn is_three_value_syntax(&self) -> bool
fn is_three_value_syntax(&self) -> bool
Returns true if this uses a 3 value syntax.