diff --git a/Userland/Libraries/LibWeb/CSS/Parser/Token.h b/Userland/Libraries/LibWeb/CSS/Parser/Token.h index 6a29d7b37a..c509a9672d 100644 --- a/Userland/Libraries/LibWeb/CSS/Parser/Token.h +++ b/Userland/Libraries/LibWeb/CSS/Parser/Token.h @@ -171,7 +171,7 @@ private: // When a value cannot be explicitly supported due to range/precision limitations, it must be converted // to the closest value supported by the implementation, but how the implementation defines "closest" // is explicitly undefined as well. - return static_cast(clamp(round(value), NumericLimits::min(), NumericLimits::max())); + return llround(value); } Type m_type { Type::Invalid };