WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
245402
fieldset with legend as flex item of form height inconsistency
https://bugs.webkit.org/show_bug.cgi?id=245402
Summary
fieldset with legend as flex item of form height inconsistency
chrstntdd
Reported
2022-09-19 16:38:02 PDT
From the readme in the repro case for the bug: "There appears to be a rendering inconsistency in Safari on both desktop and iOS. I also encountered this issue in safari 15 as well on all platforms. At a high level there is some additional space that is being preserved on the <fieldset> element. Strangely, this behavior can be "corrected" on the fly by triggering a repaint on the whole viewport such as resizing the browser window on desktop or an orientation change on iOS." Repo:
https://github.com/chrstntdd/fieldset-flex-bug
Attachments
Add attachment
proposed patch, testcase, etc.
Ahmad Saleem
Comment 1
2022-09-21 15:43:08 PDT
Can you try to use: fieldset { min-inline-size: min-content !important; } and confirm whether it works?
chrstntdd
Comment 2
2022-09-21 18:42:35 PDT
(In reply to Ahmad Saleem from
comment #1
)
> Can you try to use: > > fieldset { > min-inline-size: min-content !important; > } > > and confirm whether it works?
I have added that declaration on the main branch of the repo and the bug is still present.
https://github.com/chrstntdd/fieldset-flex-bug/commit/cd794541472ccf9932bc4952b5ea406f6f56546e
Ahmad Saleem
Comment 3
2022-09-23 06:00:07 PDT
It might be duplicate of
bug 220793
and this is not just limited to "flex" but "grid" layout as well.
Radar WebKit Bug Importer
Comment 4
2022-09-26 16:38:17 PDT
<
rdar://problem/100433635
>
Ahmad Saleem
Comment 5
2022-12-14 14:45:12 PST
@Reporter - Can you try now with Safari Technology Preview 160, it does have fixes for Legend respecting other than display types like flex etc.?
john
Comment 6
2024-12-06 05:54:56 PST
I am able to reproduce this issue as well, you can see the behavior here:
https://play.tailwindcss.com/9px06uS1Cn
As the original poster says, the bug seems to disappear when clicking into the input element. Grid does not seem to have this issue.
https://play.tailwindcss.com/3ZEZlXMENR
john
Comment 7
2024-12-06 07:00:37 PST
The other weird thing with this is that it doesn't happen when the legend doesn't render, so you can have flex and flex-direction: column on the form element and the fieldset renders fine until you add a legend, after which it adds the padding as seen above in my comment.
https://play.tailwindcss.com/vHxn6CJIHD
john
Comment 8
2024-12-06 07:04:39 PST
(In reply to john from
comment #6
)
> I am able to reproduce this issue as well, you can see the behavior here: > >
https://play.tailwindcss.com/9px06uS1Cn
> > As the original poster says, the bug seems to disappear when clicking into > the input element. > > Grid does not seem to have this issue. > >
https://play.tailwindcss.com/3ZEZlXMENR
This is one MacOS 15.1.1 and Safari Version 18.1.1 (20619.2.8.11.12)
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug