예제 #1
0
        Boolean Evaluate(CSSValueList values)
        {
            var outset      = new CSSBorderImageOutsetProperty();
            var repeat      = new CSSBorderImageRepeatProperty();
            var slice       = new CSSBorderImageSliceProperty();
            var source      = new CSSBorderImageSourceProperty();
            var width       = new CSSBorderImageWidthProperty();
            var foundSource = false;

            //TODO
            for (int i = 0; i < values.Length; i++)
            {
                if (!foundSource && CheckSingleProperty(source, i, values))
                {
                    foundSource = true;
                }
                else
                {
                    return(false);
                }
            }

            _outset = outset;
            _repeat = repeat;
            _slice  = slice;
            _source = source;
            _width  = width;
            return(true);
        }
예제 #2
0
 internal CSSBorderImageProperty()
     : base(PropertyNames.BorderImage)
 {
     _inherited = false;
     _outset    = new CSSBorderImageOutsetProperty();
     _repeat    = new CSSBorderImageRepeatProperty();
     _slice     = new CSSBorderImageSliceProperty();
     _source    = new CSSBorderImageSourceProperty();
     _width     = new CSSBorderImageWidthProperty();
 }