Skip to content

Commit 50e0ff1

Browse files
committed
[css-forms-1] Add checkmark content for indeterminate checkboxes
1 parent 1ad6d5b commit 50e0ff1

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

css-forms-1/Overview.bs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -891,11 +891,15 @@ input[type=radio]::checkmark {
891891
content: '\2713' / '';
892892
}
893893
894-
input[type=checkbox]:not([switch], :checked)::checkmark {
894+
input[type=checkbox]:not([switch], :checked, :indeterminate)::checkmark {
895895
input[type=radio]:not(:checked)::checkmark {
896896
visibility: hidden;
897897
}
898898
899+
input[type=checkbox]:indeterminate::checkmark {
900+
content: '\2014' / '';
901+
}
902+
899903
input[type=radio] {
900904
border-radius: 50%;
901905
}

0 commit comments

Comments
 (0)