diff --git a/Libraries/LibWeb/CSS/Time.cpp b/Libraries/LibWeb/CSS/Time.cpp index e362aeb108f..6eb360555ff 100644 --- a/Libraries/LibWeb/CSS/Time.cpp +++ b/Libraries/LibWeb/CSS/Time.cpp @@ -28,9 +28,21 @@ Time Time::percentage_of(Percentage const& percentage) const String Time::to_string(SerializationMode serialization_mode) const { - if (serialization_mode == SerializationMode::ResolvedValue) - return MUST(String::formatted("{}s", to_seconds())); - return MUST(String::formatted("{}{}", raw_value(), unit_name())); + // https://drafts.csswg.org/cssom/#serialize-a-css-value + // ->