mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-24 13:35:12 +00:00
LibWeb: Remove a popover AD-HOC comment after spec update
See https://github.com/whatwg/html/pull/11197
This commit is contained in:
parent
04d7228c51
commit
7b8af4d84c
Notes:
github-actions[bot]
2025-04-23 09:46:08 +00:00
Author: https://github.com/Gingeh Commit: https://github.com/LadybirdBrowser/ladybird/commit/7b8af4d84c3 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4436 Reviewed-by: https://github.com/tcl3 ✅
1 changed files with 1 additions and 3 deletions
|
@ -1400,9 +1400,7 @@ WebIDL::ExceptionOr<void> HTMLElement::hide_popover(FocusPreviousElement focus_p
|
|||
}
|
||||
};
|
||||
|
||||
// AD-HOC: This implementation checks "opened in popover mode" instead of the current popover state.
|
||||
// Spec issue: https://github.com/whatwg/html/issues/10996.
|
||||
// 7. If element's popover attribute is in the auto state or the hint state, then:
|
||||
// 7. If element's opened in popover mode is "auto" or "hint", then:
|
||||
if (m_opened_in_popover_mode.has_value() && m_opened_in_popover_mode.value().is_one_of("auto", "hint")) {
|
||||
// 7.1. Run hide all popovers until given element, focusPreviousElement, and fireEvents.
|
||||
hide_all_popovers_until(GC::Ptr(this), focus_previous_element, fire_events);
|
||||
|
|
Loading…
Add table
Reference in a new issue