mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 09:02:43 +00:00 
			
		
		
		
	LibWeb: Implement :nth-last-child pseudo-class
This commit is contained in:
		
							parent
							
								
									e87eaa3991
								
							
						
					
					
						commit
						c4bd4cbd76
					
				
					 4 changed files with 15 additions and 3 deletions
				
			
		|  | @ -566,6 +566,9 @@ public: | |||
|             } else if (pseudo_name.starts_with("nth-child", CaseSensitivity::CaseInsensitive)) { | ||||
|                 simple_selector.pseudo_class = CSS::Selector::SimpleSelector::PseudoClass::NthChild; | ||||
|                 simple_selector.nth_child_pattern = CSS::Selector::SimpleSelector::NthChildPattern::parse(capture_selector_args(pseudo_name)); | ||||
|             } else if (pseudo_name.starts_with("nth-last-child", CaseSensitivity::CaseInsensitive)) { | ||||
|                 simple_selector.pseudo_class = CSS::Selector::SimpleSelector::PseudoClass::NthLastChild; | ||||
|                 simple_selector.nth_child_pattern = CSS::Selector::SimpleSelector::NthChildPattern::parse(capture_selector_args(pseudo_name)); | ||||
|             } else if (pseudo_name.equals_ignoring_case("before")) { | ||||
|                 simple_selector.pseudo_element = CSS::Selector::SimpleSelector::PseudoElement::Before; | ||||
|             } else if (pseudo_name.equals_ignoring_case("after")) { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 miere43
						miere43