- From: L. David Baron via GitHub <noreply@w3.org>
- Date: Thu, 19 Mar 2026 15:10:59 +0000
- To: public-css-archive@w3.org
dbaron has just created a new issue for https://github.com/w3c/csswg-drafts:
== [css-forms-1] font size for radio and checkbox inputs uses max() when it should use min() ==
The default styles [in the spec](https://drafts.csswg.org/css-forms-1/#stylesheet-checkbox-radio) currently say:
```css
input[type=checkbox]:not([switch]),
input[type=radio] {
/* These size rules ensure accessibility by following WCAG rules:
* https://www.w3.org/WAI/WCAG22/Understanding/target-size-minimum.html */
block-size: 1em;
inline-size: 1em;
font-size: max(1em, 24px);
display: inline-flex;
align-items: center;
justify-content: center;
}
```
I think the `font-size: max()` should instead be a `min()`, given the comment, which suggests that the goal is ensuring that the target size is at least `24px`. The style currently ensures that it is at most `24px`, which seems wrong.
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/13686 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 19 March 2026 15:11:00 UTC