mirror of
https://github.com/RGBCube/serenity
synced 2025-07-10 09:37:34 +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:
parent
8bd3b74e3a
commit
a9620d8784
5 changed files with 11 additions and 0 deletions
|
@ -123,6 +123,7 @@ public:
|
|||
VolumeLocked,
|
||||
Buffering,
|
||||
Stalled,
|
||||
Target,
|
||||
};
|
||||
Type type;
|
||||
|
||||
|
@ -344,6 +345,8 @@ constexpr StringView pseudo_class_name(Selector::SimpleSelector::PseudoClass::Ty
|
|||
return "buffering"sv;
|
||||
case Selector::SimpleSelector::PseudoClass::Type::Stalled:
|
||||
return "stalled"sv;
|
||||
case Selector::SimpleSelector::PseudoClass::Type::Target:
|
||||
return "target"sv;
|
||||
}
|
||||
VERIFY_NOT_REACHED();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue