mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 06:28:13 +00:00
LibWeb: Serialize Angle according to spec
This commit is contained in:
parent
e72b7c5de2
commit
5dc82db0cb
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ Angle Angle::percentage_of(Percentage const& percentage) const
|
|||
|
||||
ErrorOr<String> Angle::to_string() const
|
||||
{
|
||||
return String::formatted("{}{}", m_value, unit_name());
|
||||
return String::formatted("{}deg", to_degrees());
|
||||
}
|
||||
|
||||
float Angle::to_degrees() const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue