Skip to content
This repository has been archived by the owner on Feb 23, 2022. It is now read-only.

Commit

Permalink
Remove calc() as a unit of calc(). According to the CSS grammar[0] th…
Browse files Browse the repository at this point in the history
…is is not valid.

[0] https://www.w3.org/TR/css3-values/#calc-syntax
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=125954033
  • Loading branch information
iflan committed Jul 12, 2016
1 parent 2710b43 commit 82c8a70
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/com/google/common/css/compiler/ast/GssParserCC.jj
Original file line number Diff line number Diff line change
Expand Up @@ -1819,7 +1819,7 @@ String product() :
}

// unit
// : [ NUMBER | DIMENSION | PERCENTAGE | "(" S* sum S* ")" | calc ];
// : [ NUMBER | DIMENSION | PERCENTAGE | "(" S* sum S* ")" ];
// ;
String unit() :
{
Expand Down Expand Up @@ -1849,7 +1849,6 @@ String unit() :
throw e;
}
)
| (math = calc() {content.append(math.getValue());})
)
{
return content.toString();
Expand Down

0 comments on commit 82c8a70

Please sign in to comment.