meerk40t / svgelements

SVG Parsing for Elements, Paths, and other SVG Objects.
MIT License
127 stars 28 forks source link

Add support for mil units #171

Closed Sophist-UK closed 2 years ago

Sophist-UK commented 2 years ago

And prevent e.g. "inchz" being treated as "inch".

mils are a defined unit in Meerk40t so proper support is needed in SVGelements. See meerk40t/#883

Sophist-UK commented 2 years ago

Some additional length and angle tests can be added for new functionality.

tatarize commented 2 years ago

Mil is not a unit in CSS-Length and thus is not likely to be added. 0.8.x has length in unit.length and 0.7.x has Length in elements for testing the validity. These should be adapted to cover these parts rather than modify the svgelements code.

Sophist-UK commented 2 years ago

I will rework this down to those bits which are actually valid and create a replacement PR,