LibWeb: Allow focusable for the first summary child of a detail element

This commit is contained in:
Lorenz A 2025-11-11 14:07:52 +01:00 committed by Jelle Raaijmakers
parent 8ca59e7c7e
commit bd56fdc57b
Notes: github-actions[bot] 2025-11-12 12:58:07 +00:00
3 changed files with 13 additions and 5 deletions

View file

@ -21,10 +21,11 @@ public:
// https://www.w3.org/TR/html-aria/#el-details
virtual Optional<ARIA::Role> default_role() const override { return ARIA::Role::button; }
bool is_summary_for_its_parent_details();
bool is_summary_for_its_parent_details() const;
virtual bool has_activation_behavior() const override;
virtual void activation_behavior(DOM::Event const&) override;
virtual bool is_focusable() const override;
private:
HTMLSummaryElement(DOM::Document&, DOM::QualifiedName);