mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-15 05:22:04 +00:00
LibWeb: Capitalize "No Popover state" consistently
Corresponds partly to 8035a256bf
This commit is contained in:
parent
31b302fc73
commit
e74afec9c5
Notes:
github-actions[bot]
2025-07-08 16:11:09 +00:00
Author: https://github.com/AtkinsSJ
Commit: e74afec9c5
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5353
Reviewed-by: https://github.com/tcl3 ✅
4 changed files with 9 additions and 8 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue