A previous attempt unconditionally added commas between PercentageTerm
values, but those terms can also show up in places where commas are not
expected.
Add state on the visitor to track whether we are in the context of a
keyframes rule. I think these are the only rules which need comma
separated terms, and that it can't be nested in a way where we naively
reverting back to false after leaving should cause any problems.
Fixes dart-lang/tools#1172
A previous attempt unconditionally added commas between
PercentageTerm
values, but those terms can also show up in places where commas are not expected.Add state on the visitor to track whether we are in the context of a
keyframes
rule. I think these are the only rules which need comma separated terms, and that it can't be nested in a way where we naively reverting back tofalse
after leaving should cause any problems.