NEW246597
Radio buttons are cut in a strange way (a piece is missing on the right)
https://bugs.webkit.org/show_bug.cgi?id=246597
Summary Radio buttons are cut in a strange way (a piece is missing on the right)
collimarco91
Reported 2022-10-16 13:55:19 PDT
The radio buttons are cut on the right if you apply some CSS styles. Here's our entire CSS: input[type=radio] { height: 1.5em; width: 1.5em; margin: 0 .5em 0 0; vertical-align: middle; accent-color: #337ab7; } The radio buttons are cut strangely on the right. This can be related: https://bugs.webkit.org/show_bug.cgi?id=155577 On Chrome and other browsers the CSS above works properly.
Attachments
rendering in Safari, firefox, chrome (23.83 KB, image/png)
2022-10-21 02:08 PDT, Karl Dubost
no flags
test case for radio button (679 bytes, text/html)
2022-10-23 19:27 PDT, Karl Dubost
no flags
rendering in safari (3.65 KB, image/png)
2025-01-21 22:05 PST, Karl Dubost
no flags
WebKit ToT (Reference) - macOS 15.2 (201.88 KB, image/png)
2025-01-21 22:41 PST, Ahmad Saleem
no flags
Karl Dubost
Comment 1 2022-10-21 02:08:45 PDT
Created attachment 463143 [details] rendering in Safari, firefox, chrome Indeed.
Karl Dubost
Comment 2 2022-10-21 02:17:34 PDT
Layout: Safari 16.5px x 16.5px (on hover the devtools shows 17px) Firefox 16px x 16px (on hover devtools shows 20px) Chrome 20px x 20px (on hover devtools shows 20px) And the test can be simplified to: input[type=radio] { height: 1.5em; width: 1.5em; } The values with the cut are 1.5em and 1.6em 1.4em is working 1.7em is working
Radar WebKit Bug Importer
Comment 3 2022-10-23 13:56:17 PDT
Karl Dubost
Comment 4 2022-10-23 19:27:58 PDT
Created attachment 463185 [details] test case for radio button 4 sizes. 1.5em, and 1.6em are cut. 1.4 and 1.7em are not.
Ahmad Saleem
Comment 5 2025-01-21 20:48:59 PST
@Karl - is it reproducing for you on WebKit ToT (289219@main) [Minibrowser]?
Ahmad Saleem
Comment 6 2025-01-21 20:51:16 PST
(In reply to Ahmad Saleem from comment #5) > @Karl - is it reproducing for you on WebKit ToT (289219@main) [Minibrowser]? I asked because I cannot reproduce it anymore.
Karl Dubost
Comment 7 2025-01-21 22:05:16 PST
Created attachment 473973 [details] rendering in safari the 1.5em button is cut on the right side.
Ahmad Saleem
Comment 8 2025-01-21 22:41:23 PST
Created attachment 473975 [details] WebKit ToT (Reference) - macOS 15.2
Note You need to log in before you can comment on or make changes to this bug.