mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 19:59:17 +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
|
@ -91,6 +91,24 @@ public:
|
|||
// https://html.spec.whatwg.org/multipage/forms.html#concept-submit-button
|
||||
virtual bool is_submit_button() const { return false; }
|
||||
|
||||
// https://html.spec.whatwg.org/#candidate-for-constraint-validation
|
||||
bool is_candidate_for_constraint_validation() const;
|
||||
|
||||
// https://html.spec.whatwg.org/#concept-fv-valid
|
||||
bool satisfies_its_constraints() const;
|
||||
|
||||
// https://html.spec.whatwg.org/#definitions
|
||||
virtual bool suffering_from_being_missing() const { return false; }
|
||||
virtual bool suffering_from_a_type_mismatch() const { return false; }
|
||||
virtual bool suffering_from_a_pattern_mismatch() const { return false; }
|
||||
bool suffering_from_being_too_long() const;
|
||||
bool suffering_from_being_too_short() const;
|
||||
virtual bool suffering_from_an_underflow() const { return false; }
|
||||
virtual bool suffering_from_an_overflow() const { return false; }
|
||||
virtual bool suffering_from_a_step_mismatch() const { return false; }
|
||||
virtual bool suffering_from_bad_input() const { return false; }
|
||||
bool suffering_from_a_custom_error() const;
|
||||
|
||||
virtual String value() const { return String {}; }
|
||||
|
||||
virtual HTMLElement& form_associated_element_to_html_element() = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue