Skip to content

Commit e21d412

Browse files
Add customizable select disabled styles
These styles were agreed on here but I missed the implementation for them: w3c/csswg-drafts#10857 Change-Id: Iea683d6a260970c8f48770d59eb0950a994b6926 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6310535 Reviewed-by: Traian Captan <[email protected]> Commit-Queue: Joey Arhar <[email protected]> Cr-Commit-Position: refs/heads/main@{#1431870}
1 parent 6fc2bdf commit e21d412

File tree

3 files changed

+23
-0
lines changed

3 files changed

+23
-0
lines changed

html/semantics/forms/the-select-element/customizable-select/resources/customizable-select-styles.css

+4
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@
7474
min-block-size: max(24px, 1lh);
7575
}
7676

77+
.customizable-select-button.disabled {
78+
color: color-mix(in srgb, currentColor 50%, transparent);
79+
}
80+
7781
.customizable-select-button.hover {
7882
background-color: color-mix(in lab, currentColor 10%, transparent);
7983
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<!DOCTYPE html>
2+
<link rel=stylesheet href="resources/customizable-select-styles.css">
3+
4+
<div class="customizable-select-button disabled" popovertarget=popover id=button>
5+
<span class=customizable-select-selectedcontent>option</span>
6+
</div>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!DOCTYPE html>
2+
<meta name=fuzzy content="maxDifference=0-41;totalPixels=0-1">
3+
<link rel=author href="mailto:[email protected]">
4+
<link rel=help href="https://github.com/w3c/csswg-drafts/issues/10857">
5+
<link rel=match href="select-appearance-disabled-ref.html">
6+
<style>
7+
select {
8+
appearance: base-select;
9+
}
10+
</style>
11+
<select disabled>
12+
<option>option</option>
13+
</select>

0 commit comments

Comments
 (0)