diff options
author | Andreas Kling <kling@serenityos.org> | 2021-02-10 18:26:07 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-02-10 19:06:20 +0100 |
commit | 29a2aac89ab4eb9d369d4094d7a851ca5c2faee8 (patch) | |
tree | 7a0d00e77259ab9f5db9d61e60a8acae35c15e32 /Userland/Libraries/LibWeb/CSS/Default.css | |
parent | e4e325ff61ba4346eff92e9e55ba1a133f02aabe (diff) | |
download | serenity-29a2aac89ab4eb9d369d4094d7a851ca5c2faee8.zip |
LibWeb: Start implementing <input type=text> using a shadow DOM
Text <input> fields will now generate a basic shadow DOM and attach it
to the input element.
The shadow DOM contains a <div> with some inline style, and an always-
editable text node inside it. Accessing the "value" attribute on such
an input element will get/set the value from that text node.
This is really cool, although not super stable since HTML editing is
not super stable. But it's a start! :^)
Diffstat (limited to 'Userland/Libraries/LibWeb/CSS/Default.css')
-rw-r--r-- | Userland/Libraries/LibWeb/CSS/Default.css | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/CSS/Default.css b/Userland/Libraries/LibWeb/CSS/Default.css index a63c7873ef..e151de6b5f 100644 --- a/Userland/Libraries/LibWeb/CSS/Default.css +++ b/Userland/Libraries/LibWeb/CSS/Default.css @@ -194,3 +194,10 @@ ul, ol { padding-left: 20px; } + +/* FIXME: This is a temporary hack until we can render a native-looking frame for these. */ +input[type=text] { + border: 1px solid black; + min-width: 80px; + min-height: 16px; +} |