LibWeb: Implement basic focus indication for :focus-visible

This causes links to no longer show an outline when clicked; only when
using keyboard navigation with the tab key will the outline show up.
This commit is contained in:
Jelle Raaijmakers 2025-06-13 14:12:35 +02:00 committed by Alexander Kalenik
commit 15c436b332
Notes: github-actions[bot] 2025-06-13 15:40:20 +00:00
3 changed files with 39 additions and 2 deletions

View file

@ -272,6 +272,7 @@ public:
virtual void did_receive_focus() { }
virtual void did_lose_focus() { }
bool should_indicate_focus() const;
static GC::Ptr<Layout::NodeWithStyle> create_layout_node_for_display_type(DOM::Document&, CSS::Display const&, GC::Ref<CSS::ComputedProperties>, Element*);