LibWeb: Make HTMLInputElement's contents scrollable

If the input's contents exceeded the dimensions of the inner text, it
would simply get clipped. This allows the user to scroll the input
horizontally.
This commit is contained in:
Jelle Raaijmakers 2026-02-06 13:19:35 +01:00 committed by Jelle Raaijmakers
parent abb0167cfa
commit c72de688cc
Notes: github-actions[bot] 2026-02-11 10:19:11 +00:00
13 changed files with 118 additions and 114 deletions

View file

@ -806,6 +806,8 @@ static GC::Ref<CSS::CSSStyleProperties> inner_text_style_when_visible()
width: 100%;
height: 1lh;
align-items: center;
overflow: auto;
scrollbar-width: none;
text-overflow: clip;
white-space: nowrap;
)~~~"sv);
@ -1143,6 +1145,8 @@ void HTMLInputElement::create_text_input_shadow_tree()
width: 100%;
height: 1lh;
align-items: center;
overflow: auto;
scrollbar-width: none;
text-overflow: clip;
white-space: nowrap;
)~~~"sv);