Skip to content

Commit e4d5841

Browse files
authored
[css-forms-1] Use calc-size in min sizes (#12137)
1 parent 1bce33b commit e4d5841

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

css-forms-1/Overview.bs

+3-3
Original file line numberDiff line numberDiff line change
@@ -892,10 +892,10 @@ input:is([type="color"], [type="button"], [type="reset"], [type="submit"]) {
892892

893893
/* These min-size rules ensure accessibility by following WCAG rules:
894894
* https://www.w3.org/WAI/WCAG22/Understanding/target-size-minimum.html
895-
* The 1.2em is there to make sure that options without text don't change
895+
* The 1lh is there to make sure that options without text don't change
896896
* the block size of the button. */
897-
min-block-size: max(24px, 1lh);
898-
min-inline-size: 24px;
897+
min-block-size: calc-size(auto, max(size, 24px, 1lh));
898+
min-inline-size: calc-size(auto, max(size, 24px));
899899

900900
/* box-sizing comes from existing UA styles which happen to
901901
* already be interoperable. */

0 commit comments

Comments
 (0)