@@ -1548,11 +1548,11 @@ function serializeURL({ value }) {
15481548 * @see {@link https://drafts.csswg.org/css-syntax-3/#typedef-unicode-range-token }
15491549 */
15501550function serializeUnicodeRange ( { from, to } ) {
1551- const result = `U+${ from . toString ( 16 ) . toUpperCase ( ) } `
1551+ const string = `U+${ from . toString ( 16 ) . toUpperCase ( ) } `
15521552 if ( to === 0 ) {
1553- return result
1553+ return string
15541554 }
1555- return `${ result } -${ to . toString ( 16 ) . toUpperCase ( ) } `
1555+ return `${ string } -${ to . toString ( 16 ) . toUpperCase ( ) } `
15561556}
15571557
15581558/**
@@ -2064,10 +2064,10 @@ function representBackgroundSize(size) {
20642064function representBorder ( declarations , sides ) {
20652065 const values = [ ]
20662066 for ( const [ index , declaration ] of declarations . entries ( ) ) {
2067- const match = values [ Math . floor ( index / sides % 3 ) ]
2067+ const fallback = values [ Math . floor ( index / sides % 3 ) ]
20682068 const value = serializeCSSValue ( declaration )
2069- if ( match ) {
2070- if ( match === value ) {
2069+ if ( fallback ) {
2070+ if ( fallback === value ) {
20712071 continue
20722072 }
20732073 return [ '' ]
@@ -3130,21 +3130,21 @@ function representWhiteSpace(declarations, longhands) {
31303130}
31313131
31323132/**
3133- * @param {string[] } list
3133+ * @param {string[] } sides
31343134 * @returns {string[] }
31353135 */
3136- function representSides ( list ) {
3137- list = [ ...list ]
3138- let index = list . length
3136+ function representSides ( sides ) {
3137+ sides = [ ...sides ]
3138+ let index = sides . length
31393139 while ( 1 < index -- ) {
3140- const side = list [ index ]
3141- const opposite = list [ index - 2 ] ?? list [ 0 ]
3140+ const side = sides [ index ]
3141+ const opposite = sides [ index - 2 ] ?? sides [ 0 ]
31423142 if ( side !== opposite ) {
31433143 break
31443144 }
3145- list . pop ( )
3145+ sides . pop ( )
31463146 }
3147- return list
3147+ return sides
31483148}
31493149
31503150/**
0 commit comments