You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Easiest solutions will probably be to apply rounding to the viewBox attribute, too. This will not only prevent rounding errors in Scour from causing problems but will also resolve rounding errors by other applications.
This fixesscour-project#127.
Also simplify splitting of viewBox lengths and avoiding a "FutureWarning: split() requires a non-empty pattern match" at the same time
The function
properlySizeDoc
is supposed to set aviewBox
with the images dimensions and removewidth
/height
attributes.The problem is that we preserve
width
/height
if aviewBox
is already present and the values of both do not match perfectly.Due to rounding in Scour they will almost never match for non-integer dimensions.
The text was updated successfully, but these errors were encountered: