CssTransitionDurationProperty
More information available at:
https://developer.mozilla.org/en-US/docs/CSS/transition-duration
Gets the durations for the transitions.
using AngleSharp.Css;
using AngleSharp.Css.Values;
using AngleSharp.Extensions;
namespace AngleSharp.Dom.Css
{
internal sealed class CssTransitionDurationProperty : CssProperty
{
private static readonly IValueConverter<Time[]> Converter = Converters.TimeConverter.FromList();
internal CssTransitionDurationProperty(CssStyleDeclaration rule)
: base(PropertyNames.TransitionDuration, rule, PropertyFlags.None)
{
}
protected override object GetDefault(IElement element)
{
return Time.Zero;
}
protected override object Compute(IElement element)
{
return Converter.Convert(base.Value);
}
protected override bool IsValid(CssValue value)
{
return Converter.Validate(value);
}
}
}