omgovich / colord

👑 A tiny yet powerful tool for high-performance color manipulations and conversions
https://colord.omgovich.ru
MIT License
1.67k stars 49 forks source link

Support exotic notations for Numbers #39

Open bartveneman opened 3 years ago

bartveneman commented 3 years ago

I know these are very unlikely patterns to run into, but apparently they exist, so support for them would be nice (but definitely not required):

    numbers {
      color: rgba(1e2, .5e1, .5e0, +.25e2%);
    }

Source: https://developer.mozilla.org/en-US/docs/Web/CSS/color_value#rgb_transparency_variations

omgovich commented 3 years ago

Hi! I'll think about the issue. Since that's a valid value according to the specs, we should try to extend the parsers.