mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 17:12:43 +00:00 
			
		
		
		
	LibWeb: Limit length values to 5 decimal places when serializing
This commit is contained in:
		
							parent
							
								
									7dcf060927
								
							
						
					
					
						commit
						0487485fb1
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -184,7 +184,7 @@ String Length::to_string() const | ||||||
| { | { | ||||||
|     if (is_auto()) |     if (is_auto()) | ||||||
|         return "auto"_string; |         return "auto"_string; | ||||||
|     return MUST(String::formatted("{}{}", m_value, unit_name())); |     return MUST(String::formatted("{:.5}{}", m_value, unit_name())); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| char const* Length::unit_name() const | char const* Length::unit_name() const | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Matthew Olsson
						Matthew Olsson