mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-02 16:33:13 +00:00
LibWeb: Implement CSS validity pseudo-classes
This commit is contained in:
parent
39e17e83f9
commit
bad7324307
Notes:
github-actions[bot]
2025-02-05 12:52:56 +00:00
Author: https://github.com/Psychpsyo
Commit: bad7324307
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3436
Reviewed-by: https://github.com/AtkinsSJ ✅
15 changed files with 745 additions and 29 deletions
|
@ -100,6 +100,15 @@ public:
|
|||
|
||||
bool can_skip_selectedness_update_for_inserted_option(HTMLOptionElement const&) const;
|
||||
|
||||
bool user_validity() const { return m_user_validity; }
|
||||
void set_user_validity(bool flag) { m_user_validity = flag; }
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/form-elements.html#placeholder-label-option
|
||||
HTMLOptionElement* placeholder_label_option() const;
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/form-elements.html#the-select-element%3Asuffering-from-being-missing
|
||||
virtual bool suffering_from_being_missing() const override;
|
||||
|
||||
private:
|
||||
HTMLSelectElement(DOM::Document&, DOM::QualifiedName);
|
||||
|
||||
|
@ -132,6 +141,9 @@ private:
|
|||
Vector<SelectItem> m_select_items;
|
||||
GC::Ptr<DOM::Element> m_inner_text_element;
|
||||
GC::Ptr<DOM::Element> m_chevron_icon_element;
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#user-validity
|
||||
bool m_user_validity { false };
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue