Skip to content

Commit 2e7eca1

Browse files
authored
[css-forms-1] Drop color space argument from color-mix() in UA styles
Matches whatwg/html#12198
1 parent 2fe220b commit 2e7eca1

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
}
88

99
.customizable-select-listbox.disabled {
10-
color: color-mix(in lab, currentColor 50%, transparent);
10+
color: color-mix(currentColor 50%, transparent);
1111
}
1212

1313
.customizable-select-listbox:not(.disabled) .customizable-select-legend.disabled {
14-
color: color-mix(in lab, currentColor 50%, transparent);
14+
color: color-mix(currentColor 50%, transparent);
1515
}

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
}
4141

4242
.customizable-select-option.disabled {
43-
color: color-mix(in lab, currentColor 50%, transparent);
43+
color: color-mix(currentColor 50%, transparent);
4444
}
4545

4646
.customizable-select-option::before {
@@ -74,15 +74,15 @@
7474
}
7575

7676
.customizable-select-button.disabled {
77-
color: color-mix(in srgb, currentColor 50%, transparent);
77+
color: color-mix(currentColor 50%, transparent);
7878
}
7979

8080
.customizable-select-button.hover {
81-
background-color: color-mix(in lab, currentColor 10%, transparent);
81+
background-color: color-mix(currentColor 10%, transparent);
8282
}
8383

8484
.customizable-select-button.active {
85-
background-color: color-mix(in lab, currentColor 20%, transparent);
85+
background-color: color-mix(currentColor 20%, transparent);
8686
}
8787

8888
.customizable-select-button::after {

html/semantics/forms/the-select-element/customizable-select/select-option-hover-styles.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,14 @@
4040
await new Promise(requestAnimationFrame);
4141
assert_equals(getComputedStyle(optionOne).color, 'rgb(0, 0, 0)',
4242
'Option color while hovering.');
43-
assert_equals(getComputedStyle(optionOne).backgroundColor, 'lab(0 0 0 / 0.1)',
43+
assert_equals(getComputedStyle(optionOne).backgroundColor, 'oklab(0 0 0 / 0.1)',
4444
'Option background-color while hovering.');
4545

4646
await (new test_driver.Actions()
4747
.pointerMove(1, 1, {origin: disabledOption}))
4848
.send();
4949
await new Promise(requestAnimationFrame);
50-
assert_equals(getComputedStyle(disabledOption).color, 'lab(0 0 0 / 0.5)',
50+
assert_equals(getComputedStyle(disabledOption).color, 'oklab(0 0 0 / 0.5)',
5151
'Disabled option color while hovering.');
5252
assert_equals(getComputedStyle(disabledOption).backgroundColor, 'rgba(0, 0, 0, 0)',
5353
'Disabled option background-color while hovering.');

0 commit comments

Comments
 (0)