LibWeb: Serialize Length::Type::Percentage with a "%" suffix

"10 percentage" looked rather silly. :^)
This commit is contained in:
Andreas Kling 2020-06-25 15:52:54 +02:00
parent f650f18bd2
commit afebbd1cd7
Notes: sideshowbarker 2024-07-19 05:23:21 +09:00

View File

@ -54,7 +54,7 @@ const char* Length::unit_name() const
case Type::Auto:
return "auto";
case Type::Percentage:
return "percentage";
return "%";
case Type::Undefined:
return "undefined";
}