mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 00:32:45 +00:00 
			
		
		
		
	 c72a2f9e46
			
		
	
	
		c72a2f9e46
		
	
	
	
	
		
			
			Output short version when both parts of place-content, place-items, place-self are the same.
		
			
				
	
	
		
			20 lines
		
	
	
	
		
			555 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
	
		
			555 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| /*
 | |
|  * Copyright (c) 2023, Hunter Salyer <thefalsehonesty@gmail.com>
 | |
|  *
 | |
|  * SPDX-License-Identifier: BSD-2-Clause
 | |
|  */
 | |
| 
 | |
| #include "PlaceContentStyleValue.h"
 | |
| 
 | |
| namespace Web::CSS {
 | |
| 
 | |
| ErrorOr<String> PlaceContentStyleValue::to_string() const
 | |
| {
 | |
|     auto align_content = TRY(m_properties.align_content->to_string());
 | |
|     auto justify_content = TRY(m_properties.justify_content->to_string());
 | |
|     if (align_content == justify_content)
 | |
|         return String::formatted("{}", align_content);
 | |
|     return String::formatted("{} {}", align_content, justify_content);
 | |
| }
 | |
| 
 | |
| }
 |