Commit b7d53ad0 authored by Ionel Popescu's avatar Ionel Popescu Committed by Commit Bot

Add HC support for datalist date related types.

Bug: 994219
Change-Id: I1250e61b7482e957396bc02b6a748e126dcb0a1d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1844271
Commit-Queue: Ionel Popescu <iopopesc@microsoft.com>
Reviewed-by: default avatarKent Tamura <tkent@chromium.org>
Reviewed-by: default avatarMason Freed <masonfreed@chromium.org>
Cr-Commit-Position: refs/heads/master@{#704552}
parent 7ccedcb1
......@@ -78,3 +78,15 @@
.controls-refresh .suggestion-list-entry .label {
color: rgba(16, 16, 16, 0.6) !important;
}
@media (forced-colors: active) {
.suggestion-list-entry:focus {
background-color: Highlight !important;
color: Window !important;
forced-color-adjust: none;
}
.suggestion-list-entry:focus .label {
color: Window !important;
}
}
<!DOCTYPE html>
<html>
<head>
<script>
testRunner.waitUntilDone();
</script>
<script src="../../forms/resources/picker-common.js"></script>
</head>
<body style="background-color: #eeffff;">
<input type=date id=date value="10000-12-31" list="suggestions" style="width: 200px;">
<datalist id=suggestions>
<option>2012-01-00</option> <!--invalid-->
<option>foo</option> <!--invalid-->
<option label="Today">2012-01-01</option>
<option label="Tomorrow">2012-01-02</option>
<option>2012-01-03</option>
<option>2012-01-04</option>
<option>2012-01-05</option>
<option>2012-01-06</option>
<option>2012-01-07</option>
<option>2012-01-08</option>
<option>2012-01-09</option>
<option>2012-01-10</option>
<option>2012-01-11</option>
<option>2012-01-12</option>
<option>2012-01-13</option>
<option>2012-01-14</option>
<option>2012-01-15</option>
<option>2012-01-16</option>
</datalist>
<script>
openPicker(document.getElementById('date'), finishTest);
function finishTest() {
popupWindow.focus();
eventSender.keyDown('ArrowDown');
testRunner.notifyDone();
}
</script>
</body>
</html>
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