mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 09:52:44 +00:00 
			
		
		
		
	LibWeb: Support infinite range for CSS properties
This makes `[-∞,∞]` generate valid code, instead of `return ;`
This commit is contained in:
		
							parent
							
								
									7115446995
								
							
						
					
					
						commit
						2d7308cb88
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		|  | @ -259,6 +259,11 @@ bool property_accepts_@css_type_name@(PropertyID property_id, [[maybe_unused]] @ | ||||||
|                     if (max_value_string == "∞") |                     if (max_value_string == "∞") | ||||||
|                         max_value_string = {}; |                         max_value_string = {}; | ||||||
| 
 | 
 | ||||||
|  |                     if (min_value_string.is_empty() && max_value_string.is_empty()) { | ||||||
|  |                         property_generator.appendln("true;"); | ||||||
|  |                         break; | ||||||
|  |                     } | ||||||
|  | 
 | ||||||
|                     auto output_check = [&](auto& value_string, StringView comparator) { |                     auto output_check = [&](auto& value_string, StringView comparator) { | ||||||
|                         if (value_getter.has_value()) { |                         if (value_getter.has_value()) { | ||||||
|                             property_generator.set("value_number", value_string); |                             property_generator.set("value_number", value_string); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Sam Atkins
						Sam Atkins