mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-19 15:32:31 +00:00
LibWeb: Expose HTMLMeterElement's optimum/suboptimum/etc state
No behaviour change, but this will allow us to switch over to pseudo-classes for this state.
This commit is contained in:
parent
4c3c907041
commit
1978578a72
Notes:
github-actions[bot]
2025-03-19 10:11:04 +00:00
Author: https://github.com/AtkinsSJ
Commit: 1978578a72
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3991
2 changed files with 30 additions and 10 deletions
|
@ -45,6 +45,13 @@ public:
|
|||
// https://www.w3.org/TR/html-aria/#el-meter
|
||||
virtual Optional<ARIA::Role> default_role() const override { return ARIA::Role::meter; }
|
||||
|
||||
enum class ValueState : u8 {
|
||||
Optimal,
|
||||
Suboptimal,
|
||||
EvenLessGood,
|
||||
};
|
||||
ValueState value_state() const { return m_cached_value_state; }
|
||||
|
||||
private:
|
||||
HTMLMeterElement(DOM::Document&, DOM::QualifiedName);
|
||||
|
||||
|
@ -56,6 +63,7 @@ private:
|
|||
void update_meter_value_element();
|
||||
|
||||
GC::Ptr<DOM::Element> m_meter_value_element;
|
||||
ValueState m_cached_value_state { ValueState::Optimal };
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue