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