mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-05 23:59:53 +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
Notes:
sideshowbarker
2024-07-17 07:25:39 +09:00
Author: https://github.com/AtkinsSJ
Commit: a9620d8784
Pull-request: https://github.com/SerenityOS/serenity/pull/20501
Reviewed-by: https://github.com/shannonbooth
5 changed files with 11 additions and 0 deletions
|
@ -258,6 +258,7 @@ ErrorOr<String> Selector::SimpleSelector::serialize() const
|
|||
case Selector::SimpleSelector::PseudoClass::Type::VolumeLocked:
|
||||
case Selector::SimpleSelector::PseudoClass::Type::Buffering:
|
||||
case Selector::SimpleSelector::PseudoClass::Type::Stalled:
|
||||
case Selector::SimpleSelector::PseudoClass::Type::Target:
|
||||
// If the pseudo-class does not accept arguments append ":" (U+003A), followed by the name of the pseudo-class, to s.
|
||||
TRY(s.try_append(':'));
|
||||
TRY(s.try_append(pseudo_class_name(pseudo_class.type)));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue