cssinjs / istf-spec

Interoperable Style Transfer Format [DRAFT]
247 stars 8 forks source link

Fix functional value notation inconsistency #29

Closed kitten closed 6 years ago

kitten commented 6 years ago

If I'm not mistaken 50% - 2em shouldn't be a single value, but a compound value, right?

kof commented 6 years ago

I haven't thought of it yet, wanted to get other things done first. It is a function call with a math expression as an argument. While 50% is a value, "-" is actually not.

kitten commented 6 years ago

That's true. The problem with - is, that it's a special character that doesn't normally occur on its own.

Maybe we'd like to treat calc in a special way, like we will do with url without quotes?