Timestamp:
Dec 9, 2021, 6:03:45 AM (3 years ago)
Author:
Manuel Rego Casasnovas
Message:

[selectors] Match :focus-visible on <select> elements
https://bugs.webkit.org/show_bug.cgi?id=233924

Reviewed by Antti Koivisto.

Source/WebCore:

Test: fast/forms/select-listbox-focusring.html

  • dom/Element.cpp:

(WebCore::shouldAlwaysHaveFocusVisibleWhenFocused):

LayoutTests:

  • fast/forms/select-listbox-focusring-expected.html: Added.
  • fast/forms/select-listbox-focusring.html: Added.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/dom/Element.cpp

    r286542 r286776  
    808808static bool shouldAlwaysHaveFocusVisibleWhenFocused(const Element& element)
    809809{
    810     return element.isTextField() || element.isContentEditable();
     810    return element.isTextField() || element.isContentEditable();
    811811}
    812812
Note: See TracChangeset for help on using the changeset viewer.