@@ -388,7 +388,7 @@ const prepareBorderProperties = (property, value, priority, properties, opt = {}
388388 const nameProperty = prop1 ;
389389 // Empty string, global keywords, var(), value of longhands.
390390 if ( typeof value === "string" ) {
391- // longhand properties
391+ // Handle longhand properties
392392 if ( prop3 ) {
393393 const nameItem = getPropertyItem ( nameProperty , properties ) ;
394394 const imageItem = getPropertyItem ( BORDER_IMAGE , properties ) ;
@@ -437,7 +437,7 @@ const prepareBorderProperties = (property, value, priority, properties, opt = {}
437437 borderItems . set ( lineProperty , lineItem ) ;
438438 borderItems . set ( positionProperty , positionItem ) ;
439439 borderItems . set ( longhandProperty , longhandItem ) ;
440- // border-top, border-right, border-bottom, border-left shorthands
440+ // Handle border-top, border-right, border-bottom, border-left shorthands
441441 } else if ( prop2 && positions . includes ( prop2 ) ) {
442442 const nameItem = getPropertyItem ( nameProperty , properties ) ;
443443 const imageItem = getPropertyItem ( BORDER_IMAGE , properties ) ;
@@ -509,7 +509,7 @@ const prepareBorderProperties = (property, value, priority, properties, opt = {}
509509 borderItems . set ( lineStyleProperty , lineStyleItem ) ;
510510 borderItems . set ( lineColorProperty , lineColorItem ) ;
511511 borderItems . set ( positionProperty , positionItem ) ;
512- // border-width, border-style, border-color
512+ // Handle border-width, border-style, border-color shorthands
513513 } else if ( prop2 && lines . includes ( prop2 ) ) {
514514 const nameItem = getPropertyItem ( nameProperty , properties ) ;
515515 const imageItem = getPropertyItem ( BORDER_IMAGE , properties ) ;
@@ -547,7 +547,7 @@ const prepareBorderProperties = (property, value, priority, properties, opt = {}
547547 borderItems . set ( nameProperty , nameItem ) ;
548548 borderItems . set ( BORDER_IMAGE , imageItem ) ;
549549 borderItems . set ( lineProperty , lineItem ) ;
550- // border shorthand
550+ // Handle border shorthand
551551 } else {
552552 const nameItem = getPropertyItem ( nameProperty , properties ) ;
553553 const imageItem = getPropertyItem ( BORDER_IMAGE , properties ) ;
@@ -660,7 +660,7 @@ const prepareBorderProperties = (property, value, priority, properties, opt = {}
660660 borderItems . set ( lineProperty , lineItem ) ;
661661 // Values of border, border-top, border-right, border-bottom, border-top.
662662 } else if ( value && typeof value === "object" ) {
663- // position shorthands
663+ // Handle position shorthands
664664 if ( prop2 ) {
665665 if ( ! positions . includes ( prop2 ) ) {
666666 return ;
@@ -755,7 +755,7 @@ const prepareBorderProperties = (property, value, priority, properties, opt = {}
755755 borderItems . set ( lineStyleProperty , lineStyleItem ) ;
756756 borderItems . set ( lineColorProperty , lineColorItem ) ;
757757 borderItems . set ( positionProperty , positionItem ) ;
758- // border shorthand
758+ // Handle border shorthand
759759 } else {
760760 const nameItem = getPropertyItem ( prop1 , properties ) ;
761761 const imageItem = getPropertyItem ( BORDER_IMAGE , properties ) ;
0 commit comments