Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Rendering issue with checkbox in flexbox layout
https://bugs.webkit.org/show_bug.cgi?id=255419 <rdar://problem/108026194> Reviewed by Antti Koivisto. Form controls with appearance are supposed to set their minimum (intrinsic) widths so that they don't get overlapped (e.g. by getting sized to 0px) in over-constrained situations. * LayoutTests/fast/flexbox/overlapped-form-controls-expected.html: Added. * LayoutTests/fast/flexbox/overlapped-form-controls.html: Added. * Source/WebCore/platform/Theme.cpp: (WebCore::Theme::minimumControlSize const): Canonical link: https://commits.webkit.org/263052@main
- Loading branch information
1 parent
62a3751
commit a6b2a57
Showing
6 changed files
with
39 additions
and
9 deletions.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
LayoutTests/fast/flexbox/overlapped-form-controls-expected.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<style> | ||
div { | ||
position: absolute; | ||
} | ||
input { | ||
outline: solid 1px black; | ||
} | ||
</style> | ||
<div><input type="checkbox"></div> | ||
<div style="top: 100px;"><input type="radio"></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<style> | ||
div { | ||
max-width: 30px; | ||
display: flex; | ||
color: transparent; | ||
font-family: Ahem; | ||
font-size: 10px; | ||
position: absolute; | ||
} | ||
input { | ||
outline: solid 1px black; | ||
} | ||
</style> | ||
<div><input type="checkbox">PASS if form control is not overlapped.</div> | ||
<div style="top: 100px;"><input type="radio">PASS if form control is not overlapped.</div> |
8 changes: 0 additions & 8 deletions
8
...ios-wk2/imported/w3c/web-platform-tests/css/css-flexbox/radiobutton-min-size-expected.txt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters