+ /**
+ * Parses the `border` CSS property shorthand format.
+ * This CSS property does not support inheritance (https://www.w3.org/TR/css3-background/#the-border-shorthands).
+ *
+ * console.log( CKEDITOR.tools.style.parse.border( '3px solid #ffeedd' ) );
+ * // Logs: { width: "3px", style: "solid", color: "#ffeedd" }
+ *
+ * @param {String} value The `border` property value.
+ * @returns {Object}
+ * @returns {String} return.width The border-width attribute.
+ * @returns {String} return.style The border-style attribute.
+ * @returns {String} return.color The border-color attribute.
+ * @member CKEDITOR.tools.style.parse
+ */
+ border: function( value ) {
+ var ret = {},
+ input = value.split( /\s+/ );
+
+ CKEDITOR.tools.array.forEach( input, function( val ) {
+ if ( !ret.color ) {
+ var parseColor = CKEDITOR.tools.style.parse._findColor( val );
+ if ( parseColor.length ) {
+ ret.color = parseColor[ 0 ];
+ return;
+ }
+ }
+
+ if ( !ret.style ) {
+ if ( CKEDITOR.tools.indexOf( CKEDITOR.tools.style.parse._borderStyle, val ) !== -1 ) {
+ ret.style = val;
+ return;
+ }
+ }
+
+ if ( !ret.width ) {
+ if ( CKEDITOR.tools.style.parse._widthRegExp.test( val ) ) {
+ ret.width = val;
+ return;
+ }
+ }
+
+ } );
+ return ret;
+ },
+