mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00:00
LibWeb: Implement the :target selector pseudo-class
We don't yet set the Document's target element in most cases, so this does not function very well. But that will improve once we *do* set it, which involves a more complete Navigables implementation.
This commit is contained in:
committed by
Andreas Kling
parent
8bd3b74e3a
commit
a9620d8784
@@ -590,6 +590,9 @@ void dump_selector(StringBuilder& builder, CSS::Selector const& selector)
|
||||
case CSS::Selector::SimpleSelector::PseudoClass::Type::Stalled:
|
||||
pseudo_class_description = "Stalled";
|
||||
break;
|
||||
case CSS::Selector::SimpleSelector::PseudoClass::Type::Target:
|
||||
pseudo_class_description = "Target";
|
||||
break;
|
||||
}
|
||||
|
||||
builder.appendff(" pseudo_class={}", pseudo_class_description);
|
||||
|
||||
Reference in New Issue
Block a user