mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 14:12:44 +00:00 
			
		
		
		
	LibWeb: Add support for parsing place-content shorthand CSS property
This commit is contained in:
		
							parent
							
								
									23be1c5482
								
							
						
					
					
						commit
						dcead6f5eb
					
				
					 12 changed files with 139 additions and 0 deletions
				
			
		|  | @ -46,6 +46,7 @@ | |||
| #include <LibWeb/CSS/StyleValues/NumericStyleValue.h> | ||||
| #include <LibWeb/CSS/StyleValues/OverflowStyleValue.h> | ||||
| #include <LibWeb/CSS/StyleValues/PercentageStyleValue.h> | ||||
| #include <LibWeb/CSS/StyleValues/PlaceContentStyleValue.h> | ||||
| #include <LibWeb/CSS/StyleValues/PositionStyleValue.h> | ||||
| #include <LibWeb/CSS/StyleValues/RadialGradientStyleValue.h> | ||||
| #include <LibWeb/CSS/StyleValues/RectStyleValue.h> | ||||
|  | @ -295,6 +296,12 @@ PercentageStyleValue const& StyleValue::as_percentage() const | |||
|     return static_cast<PercentageStyleValue const&>(*this); | ||||
| } | ||||
| 
 | ||||
| PlaceContentStyleValue const& StyleValue::as_place_content() const | ||||
| { | ||||
|     VERIFY(is_place_content()); | ||||
|     return static_cast<PlaceContentStyleValue const&>(*this); | ||||
| } | ||||
| 
 | ||||
| PositionStyleValue const& StyleValue::as_position() const | ||||
| { | ||||
|     VERIFY(is_position()); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 FalseHonesty
						FalseHonesty