KeyframeSelector
Represents the keyframe selector.
using System.Collections.Generic;
namespace AngleSharp.Dom.Css
{
internal sealed class KeyframeSelector : IKeyframeSelector
{
private readonly List<Percent> _stops;
public IEnumerable<Percent> Stops => _stops;
public string Text {
get {
string[] array = new string[_stops.Count];
for (int i = 0; i < array.Length; i++) {
array[i] = ((ICssValue)_stops[i]).CssText;
}
return string.Join(", ", array);
}
}
public KeyframeSelector(IEnumerable<Percent> stops)
{
_stops = new List<Percent>(stops);
}
}
}