Skip to content

Commit 21cbfbe

Browse files
committed
SPELL IT RIGHT
1 parent 2d41233 commit 21cbfbe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

parse-css.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -754,7 +754,7 @@ class NumberToken extends CSSParserToken {
754754
toString() {
755755
const name = this.isInteger ? "INT" : "NUMBER";
756756
const sign = this.sign == "+" ? "+" : "";
757-
return `${name}(${this.sign}${this.value})`;
757+
return `${name}(${sign}${this.value})`;
758758
}
759759
toJSON() { return {type:this.type, value:this.value, isInteger:this.isInteger, sign:this.sign}; }
760760
toSource() { return formatNumber(this.value, this.sign); }
@@ -768,7 +768,7 @@ class PercentageToken extends CSSParserToken {
768768
}
769769
toString() {
770770
const sign = this.sign == "+" ? "+" : "";
771-
return `PERCENTAGE(${this.sign}${this.value})`;
771+
return `PERCENTAGE(${sign}${this.value})`;
772772
}
773773
toJSON() { return {type:this.type, value:this.value, sign:this.sign}; }
774774
toSource() { return `${formatNumber(this.value, this.sign)}%`; }
@@ -783,7 +783,7 @@ class DimensionToken extends CSSParserToken {
783783
}
784784
toString() {
785785
const sign = this.sign == "+" ? "+" : "";
786-
return `DIM(${this.sign}${this.value}, ${this.unit})`;
786+
return `DIM(${sign}${this.value}, ${this.unit})`;
787787
}
788788
toJSON() { return {type:this.type, value:this.value, unit:this.unit}; }
789789
toSource() {

0 commit comments

Comments
 (0)