Commit 30ac208e authored by Alex Keng's avatar Alex Keng Committed by Commit Bot

Enable high contrast mode for <select multiple>

This change updates forced_color.css to enable <select multiple> to
render high contrast color.

Bug: 994219
Change-Id: If9814a11544232cfe8ee4de219f0ddaa83f70204
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1816448
Commit-Queue: Alex Keng <shihken@microsoft.com>
Reviewed-by: default avatarKent Tamura <tkent@chromium.org>
Reviewed-by: default avatarMason Freed <masonfreed@chromium.org>
Cr-Commit-Position: refs/heads/master@{#699207}
parent 9d99da66
......@@ -106,6 +106,45 @@
color: GrayText;
}
select:-internal-list-box {
background-color: Window !important;
border-color: ButtonText;
}
/* option disabled */
select:-internal-list-box option:disabled,
select:-internal-list-box option:disabled:hover,
select:-internal-list-box:disabled option,
select:-internal-list-box:disabled option:hover {
background-color: Window !important;
color: GrayText !important;
}
/* option selected */
select:-internal-list-box:focus option:checked,
select:-internal-list-box:focus option:checked:hover,
select:-internal-list-box option:checked,
select:-internal-list-box option:checked:hover {
background-color: Window !important;
color: Highlight !important;
}
/* option both disabled and selected */
select:-internal-list-box:focus option:checked:disabled,
select:-internal-list-box:focus option:checked:disabled:hover,
select:-internal-list-box:disabled option:checked,
select:-internal-list-box:disabled option:checked:hover,
select:-internal-list-box option:checked:disabled,
select:-internal-list-box option:checked:disabled:hover {
background-color: Window !important;
color: GrayText !important;
}
select:-internal-list-box option:hover {
background-color: Window;
color: Highlight;
}
select {
background: Window;
border-color: WindowText;
......
<select multiple>
<option selected>first selected</option>
<option>unselected</option>
<option selected>second selected</option>
<option disabled>disabled</option>
</select><br><br>
<script>
if (window.testRunner)
testRunner.setUseMockTheme(false);
</script>
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment