CSSShapeValue
Represents a CSS shape.
https://developer.mozilla.org/en-US/docs/Web/CSS/shape
namespace AngleSharp.DOM.Css
{
public sealed class CSSShapeValue : CSSValue
{
private readonly Length _top;
private readonly Length _right;
private readonly Length _bottom;
private readonly Length _left;
public Length Top => _top;
public Length Right => _right;
public Length Bottom => _bottom;
public Length Left => _left;
public CSSShapeValue(Length top, Length right, Length bottom, Length left)
{
_top = top;
_right = right;
_bottom = bottom;
_left = left;
}
public override string ToCss()
{
return FunctionNames.Build(FunctionNames.Rect, _top.ToCss(), _right.ToCss(), _bottom.ToCss(), _left.ToCss());
}
}
}