mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 10:48:41 +00:00
LibWeb: Stub out an "open" state on <select> elements
The CSS Selectors-4 spec suggests that `:open` and `:closed` should apply to `<select>` elements, so let's add a way of storing and exposing that state. We don't yet actually generate any layout for `<select>` elements, so they will always report that they are closed.
This commit is contained in:
committed by
Andreas Kling
parent
b1632c58bf
commit
29bb0f0ae6
@@ -175,4 +175,13 @@ Optional<ARIA::Role> HTMLSelectElement::default_role() const
|
||||
return ARIA::Role::combobox;
|
||||
}
|
||||
|
||||
void HTMLSelectElement::set_is_open(bool open)
|
||||
{
|
||||
if (open == m_is_open)
|
||||
return;
|
||||
|
||||
m_is_open = open;
|
||||
invalidate_style();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user