mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2026-04-19 02:10:26 +00:00
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:
parent
abb0167cfa
commit
c72de688cc
Notes:
github-actions[bot]
2026-02-11 10:19:11 +00:00
Author: https://github.com/gmta
Commit: c72de688cc
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/7839
13 changed files with 118 additions and 114 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue