mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 04:52:45 +00:00 
			
		
		
		
	LibWeb: Ignore vendor-prefixed at-rules
I don't know if I have ever seen one, but they are mentioned in the spec, so we might as well do this. https://wiki.csswg.org/spec/vendor-prefixes#css-vendor-prefixes
This commit is contained in:
		
							parent
							
								
									13c67f9920
								
							
						
					
					
						commit
						6c27e2938a
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		|  | @ -1197,7 +1197,9 @@ Optional<URL> Parser::parse_url_function(ParsingContext const& context, StyleCom | |||
| RefPtr<CSSRule> Parser::convert_to_rule(NonnullRefPtr<StyleRule> rule) | ||||
| { | ||||
|     if (rule->m_type == StyleRule::Type::At) { | ||||
|         if (rule->m_name.equals_ignoring_case("import"sv) && !rule->prelude().is_empty()) { | ||||
|         if (has_ignored_vendor_prefix(rule->m_name)) { | ||||
|             return {}; | ||||
|         } else if (rule->m_name.equals_ignoring_case("import"sv) && !rule->prelude().is_empty()) { | ||||
| 
 | ||||
|             Optional<URL> url; | ||||
|             for (auto& token : rule->prelude()) { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Sam Atkins
						Sam Atkins