LibWeb: Remove label default inline-block style

Let labels fall back to their default inline display so empty
labels do not create extra line height above following
block content.

Add a regression for the empty-label case and update the
file input layout expectation for the UA shadow label.
This commit is contained in:
Rob Ryan
2026-03-18 11:49:47 +11:00
committed by Tim Ledbetter
parent 5ff1ae1876
commit 1b508c4e42
Notes: github-actions[bot] 2026-03-21 07:41:37 +00:00
4 changed files with 59 additions and 14 deletions

View File

@@ -19,11 +19,6 @@ blink {
display: inline;
}
/* FIXME: This doesn't seem right. */
label {
display: inline-block;
}
/* FIXME: This is a temporary hack until we can render a native-looking frame for these. */
input:not([type=submit], input[type=button], input[type=image], input[type=reset], input[type=color], input[type=checkbox], input[type=file], input[type=radio], input[type=range]), textarea {
border: 1px solid ButtonBorder;