Closed simoubuntu closed 3 years ago
Thanks! That was indeed wrong. I considered changing the parsing function, since I don't understand why we would be so restrictive in the first place. But maybe there's a good reason for it, I don't know.
I considered it too, but I'm not so expert. Maybe in the future I will check again. Thank you!
In _parse_size there are only two cases: if input is float or int -> consider it as pixel measure if input is string -> parse it as percentage. If '300px' is set as parameter, the exception "ValueError: Cannot parse value '300px' as '%'" is raised.