mirror of
				https://github.com/LadybirdBrowser/ladybird.git
				synced 2025-10-31 13:20:59 +00:00 
			
		
		
		
	LibWeb: Treat width/height on td/th elements as non-zero dimension value
This commit is contained in:
		
							parent
							
								
									71e89fe134
								
							
						
					
					
						commit
						e96b3315ad
					
				
				
				Notes:
				
					sideshowbarker
				
				2024-07-17 16:44:37 +09:00 
				
			
			Author: https://github.com/awesomekling
Commit: e96b3315ad
			
					 1 changed files with 5 additions and 1 deletions
				
			
		|  | @ -36,9 +36,13 @@ void HTMLTableCellElement::apply_presentational_hints(CSS::StyleProperties& styl | |||
|             return; | ||||
|         } | ||||
|         if (name == HTML::AttributeNames::width) { | ||||
|             if (auto parsed_value = parse_html_length(document(), value)) | ||||
|             if (auto parsed_value = parse_nonzero_dimension_value(value)) | ||||
|                 style.set_property(CSS::PropertyID::Width, parsed_value.release_nonnull()); | ||||
|             return; | ||||
|         } else if (name == HTML::AttributeNames::height) { | ||||
|             if (auto parsed_value = parse_nonzero_dimension_value(value)) | ||||
|                 style.set_property(CSS::PropertyID::Height, parsed_value.release_nonnull()); | ||||
|             return; | ||||
|         } | ||||
|     }); | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling