Fix CSSLength not rejecting percent value

core4
nimetu 3 years ago
parent 7878e13602
commit 3f1f46bc7d

@ -66,6 +66,9 @@ bool CSSLength::parseValue(const std::string &value, bool allowPercent, bool all
}
std::string unit = toLowerAscii(value.substr(pos));
if (!allowPercent && unit == "%")
return false;
if (knownUnits.count(unit))
{
std::string tmpstr = value.substr(0, pos);

Loading…
Cancel
Save