aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout_2020/flexbox/construct.rs
diff options
context:
space:
mode:
authorMartin Robinson <mrobinson@igalia.com>2024-06-20 12:13:50 +0200
committerGitHub <noreply@github.com>2024-06-20 10:13:50 +0000
commit44064b14392838fd7da148000b58c9a3cc07d4e7 (patch)
tree47b931db8d9adfe85518f8a98af68325b1e7c4a7 /components/layout_2020/flexbox/construct.rs
parent3d6accbbe3a33ea5e3c621ae3c291a0f35fcba73 (diff)
downloadservo-44064b14392838fd7da148000b58c9a3cc07d4e7.tar.gz
servo-44064b14392838fd7da148000b58c9a3cc07d4e7.zip
layout: Add very basic support for showing text in input boxes (#32365)
This only paints text in input fields. Selection and cursor are still not painted. In addition to adding this feature, the change also updates the user-agent.css with the latest from the HTML specification. Extra padding and extraneous settings (such as a bogus line-height and min-height) are also removed from servo.css. This leads to some new passes. There are some new passes, this introduces failures as inserting text reveals issues that were hidden before. Notably: - failures in `/html/editing/editing-0/spelling-and-grammar-checking/`: We do not support spell-checking. - Most of the rest of the new failures are missing features of input boxes that are also missing in legacy layout.
Diffstat (limited to 'components/layout_2020/flexbox/construct.rs')
-rw-r--r--components/layout_2020/flexbox/construct.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/components/layout_2020/flexbox/construct.rs b/components/layout_2020/flexbox/construct.rs
index 1695393065a..a21618d674e 100644
--- a/components/layout_2020/flexbox/construct.rs
+++ b/components/layout_2020/flexbox/construct.rs
@@ -159,7 +159,8 @@ where
let Some(inline_formatting_context) = inline_formatting_context_builder.finish(
self.context,
self.text_decoration_line,
- true, /* has_first_formatted_line */
+ true, /* has_first_formatted_line */
+ false, /* is_single_line_text_box */
) else {
return None;
};