mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
LibWeb: Hide stepper buttons on appearance: textfield number inputs
The spec says: > For the purpose of this specification, they all have the same effect as auto. However, the host language may also take these values into account when defining the native appearance of the element. https://drafts.csswg.org/css-ui/#typedef-appearance-compat-special Firefox at least hides the stepper buttons when this is set.
This commit is contained in:
Notes:
github-actions[bot]
2025-12-01 11:11:27 +00:00
Author: https://github.com/AtkinsSJ Commit: https://github.com/LadybirdBrowser/ladybird/commit/d5d1b5351e1 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6821 Reviewed-by: https://github.com/tcl3
@@ -257,6 +257,7 @@ private:
|
||||
HTMLInputElement(DOM::Document&, DOM::QualifiedName);
|
||||
|
||||
void type_attribute_changed(TypeAttributeState old_state, TypeAttributeState new_state);
|
||||
virtual void computed_properties_changed() override;
|
||||
|
||||
virtual bool is_presentational_hint(FlyString const&) const override;
|
||||
virtual void apply_presentational_hints(GC::Ref<CSS::CascadedProperties>) const override;
|
||||
@@ -349,6 +350,8 @@ private:
|
||||
GC::Ptr<DOM::Element> m_inner_text_element;
|
||||
GC::Ptr<DOM::Text> m_text_node;
|
||||
bool m_checked { false };
|
||||
GC::Ptr<DOM::Element> m_up_button_element;
|
||||
GC::Ptr<DOM::Element> m_down_button_element;
|
||||
|
||||
void update_color_well_element();
|
||||
GC::Ptr<DOM::Element> m_color_well_element;
|
||||
|
||||
Reference in New Issue
Block a user