mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
LibWeb: Capitalize "No Popover state" consistently
Corresponds partly to 8035a256bf
This commit is contained in:
committed by
Tim Ledbetter
parent
31b302fc73
commit
e74afec9c5
Notes:
github-actions[bot]
2025-07-08 16:11:09 +00:00
Author: https://github.com/AtkinsSJ Commit: https://github.com/LadybirdBrowser/ladybird/commit/e74afec9c5d Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5353 Reviewed-by: https://github.com/tcl3 ✅
@@ -852,7 +852,8 @@ static inline bool matches_pseudo_class(CSS::Selector::SimpleSelector::PseudoCla
|
||||
}
|
||||
case CSS::PseudoClass::PopoverOpen: {
|
||||
// https://html.spec.whatwg.org/multipage/semantics-other.html#selector-popover-open
|
||||
// The :popover-open pseudo-class is defined to match any HTML element whose popover attribute is not in the no popover state and whose popover visibility state is showing.
|
||||
// The :popover-open pseudo-class is defined to match any HTML element whose popover attribute is not in the
|
||||
// No Popover state and whose popover visibility state is showing.
|
||||
if (is<HTML::HTMLElement>(element) && element.has_attribute(HTML::AttributeNames::popover)) {
|
||||
auto& html_element = static_cast<HTML::HTMLElement const&>(element);
|
||||
return html_element.popover_visibility_state() == HTML::HTMLElement::PopoverVisibilityState::Showing;
|
||||
|
||||
Reference in New Issue
Block a user