mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02: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:
committed by
Jelle Raaijmakers
parent
abb0167cfa
commit
c72de688cc
Notes:
github-actions[bot]
2026-02-11 10:19:11 +00:00
Author: https://github.com/gmta Commit: https://github.com/LadybirdBrowser/ladybird/commit/c72de688cc6 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/7839
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user