#[repr(u8)]pub enum TimelineRangeName {
None = 0,
Cover = 1,
Contain = 2,
Entry = 3,
Exit = 4,
EntryCrossing = 5,
ExitCrossing = 6,
Scroll = 7,
}Expand description
The
For now, only view timeline ranges use this type. https://drafts.csswg.org/scroll-animations-1/#view-timelines-ranges
Variants§
None = 0
The default value. No timeline range name specified.
Cover = 1
Represents the full range of the view progress timeline
Contain = 2
Represents the range during which the principal box is either fully contained by, or fully covers, its view progress visibility range within the scrollport.
Entry = 3
Represents the range during which the principal box is entering the view progress visibility range.
Exit = 4
Represents the range during which the principal box is exiting the view progress visibility range.
EntryCrossing = 5
Represents the range during which the principal box crosses the end border edge.
ExitCrossing = 6
Represents the range during which the principal box crosses the start border edge.
Scroll = 7
Represents the full range of the scroll container on which the view progress timeline is defined.
Implementations§
Source§impl TimelineRangeName
impl TimelineRangeName
Sourcepub fn parse<'i, 't>(input: &mut Parser<'i, 't>) -> Result<Self, ParseError<'i>>
pub fn parse<'i, 't>(input: &mut Parser<'i, 't>) -> Result<Self, ParseError<'i>>
Parse this keyword.
Sourcepub fn from_ident(ident: &str) -> Result<Self, ()>
pub fn from_ident(ident: &str) -> Result<Self, ()>
Parse this keyword from a string slice.
Trait Implementations§
Source§impl Clone for TimelineRangeName
impl Clone for TimelineRangeName
Source§fn clone(&self) -> TimelineRangeName
fn clone(&self) -> TimelineRangeName
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TimelineRangeName
impl Debug for TimelineRangeName
Source§impl MallocSizeOf for TimelineRangeName
impl MallocSizeOf for TimelineRangeName
Source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Source§impl Parse for TimelineRangeName
impl Parse for TimelineRangeName
Source§fn parse<'i, 't>(
_: &ParserContext<'_>,
input: &mut Parser<'i, 't>,
) -> Result<Self, ParseError<'i>>
fn parse<'i, 't>( _: &ParserContext<'_>, input: &mut Parser<'i, 't>, ) -> Result<Self, ParseError<'i>>
Source§impl PartialEq for TimelineRangeName
impl PartialEq for TimelineRangeName
Source§impl SpecifiedValueInfo for TimelineRangeName
impl SpecifiedValueInfo for TimelineRangeName
Source§const SUPPORTED_TYPES: u8 = 0
const SUPPORTED_TYPES: u8 = 0
Source§impl ToComputedValue for TimelineRangeName
impl ToComputedValue for TimelineRangeName
Source§type ComputedValue = TimelineRangeName
type ComputedValue = TimelineRangeName
Source§fn from_computed_value(from: &Self::ComputedValue) -> Self
fn from_computed_value(from: &Self::ComputedValue) -> Self
Source§fn to_computed_value(&self, context: &Context<'_>) -> Self::ComputedValue
fn to_computed_value(&self, context: &Context<'_>) -> Self::ComputedValue
Context.Source§impl ToCss for TimelineRangeName
impl ToCss for TimelineRangeName
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,
self in CSS syntax, writing to dest.Source§fn to_css_string(&self) -> String
fn to_css_string(&self) -> String
self in CSS syntax and return a string. Read moreSource§fn to_css_cssstring(&self) -> String
fn to_css_cssstring(&self) -> String
self in CSS syntax and return a CssString. Read moreSource§impl ToResolvedValue for TimelineRangeName
impl ToResolvedValue for TimelineRangeName
Source§type ResolvedValue = TimelineRangeName
type ResolvedValue = TimelineRangeName
Source§fn from_resolved_value(from: Self::ResolvedValue) -> Self
fn from_resolved_value(from: Self::ResolvedValue) -> Self
Source§fn to_resolved_value(self, context: &Context<'_>) -> Self::ResolvedValue
fn to_resolved_value(self, context: &Context<'_>) -> Self::ResolvedValue
Source§impl ToShmem for TimelineRangeName
impl ToShmem for TimelineRangeName
Source§impl ToTyped for TimelineRangeName
impl ToTyped for TimelineRangeName
Source§fn to_typed(&self) -> Option<TypedValue>
fn to_typed(&self) -> Option<TypedValue>
impl Copy for TimelineRangeName
impl StructuralPartialEq for TimelineRangeName
Auto Trait Implementations§
impl Freeze for TimelineRangeName
impl RefUnwindSafe for TimelineRangeName
impl Send for TimelineRangeName
impl Sync for TimelineRangeName
impl Unpin for TimelineRangeName
impl UnsafeUnpin for TimelineRangeName
impl UnwindSafe for TimelineRangeName
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more