rgrove / crass

A Ruby CSS parser that's fully compliant with the CSS Syntax Level 3 specification.
MIT License
139 stars 14 forks source link

Limit number values to a sensible range #11

Closed rgrove closed 4 years ago

rgrove commented 4 years ago

Number values are now limited to a maximum of Float::MAX and a minimum of negative Float::MAX.

Internally, Integer is now used for numbers parsed as the "integer" type (as defined in the spec), while Float is used for numbers parsed as the "number" type.

Fixes #10