mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00: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:
parent
c3d23a2487
commit
d5d1b5351e
Notes:
github-actions[bot]
2025-12-01 11:11:27 +00:00
Author: https://github.com/AtkinsSJ
Commit: d5d1b5351e
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6821
Reviewed-by: https://github.com/tcl3
5 changed files with 163 additions and 23 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue