/// <summary>
        /// Determines if the given value represents a valid state of this property.
        /// </summary>
        /// <param name="value">The state that should be used.</param>
        /// <returns>True if the state is valid, otherwise false.</returns>
        protected override Boolean IsValid(CSSValue value)
        {
            var shape = value as CSSShapeValue;

            if (shape != null)
                _shape = shape;
            else if (value.Is("auto"))
                _shape = null;
            else if (value != CSSValue.Inherit)
                return false;

            return true;
        }
Beispiel #2
0
        protected override Boolean IsValid(CSSValue value)
        {
            var shape = value as CSSShapeValue;

            if (shape != null)
            {
                _shape = shape;
            }
            else if (value.Is("auto"))
            {
                _shape = null;
            }
            else if (value != CSSValue.Inherit)
            {
                return(false);
            }

            return(true);
        }
Beispiel #3
0
 internal CSSClipProperty()
     : base(PropertyNames.Clip)
 {
     _shape     = null;
     _inherited = false;
 }
 internal CSSClipProperty()
     : base(PropertyNames.Clip)
 {
     _shape = null;
     _inherited = false;
 }