| commit | a7f3967921b2960c9e901b027cbefd2536715615 | [log] [tgz] |
|---|---|---|
| author | Joey Arhar <jarhar@chromium.org> | Sat Jan 04 00:13:59 2025 |
| committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Sat Jan 04 00:13:59 2025 |
| tree | 7684897a7d0f9940d68f620ed5c8bde41b0cd30b | |
| parent | 986fa33cd83818c09b374fcf7825b7cca57958a5 [diff] |
Fix input-text-datalist-removal.html on android This test fails on android due to one screenshot rendering the caret/cursor in the input, and the other not. By adding caret-color:transparent to both, neither of them will ever render the caret, which makes it pass on android. Fixed: 386250158 Change-Id: I8b707838e0b5519ef8c8483f80fffcf3a433dcc4 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6127279 Reviewed-by: David Baron <dbaron@chromium.org> Commit-Queue: Joey Arhar <jarhar@chromium.org> Cr-Commit-Position: refs/heads/main@{#1401999}
diff --git a/third_party/blink/web_tests/external/wpt/html/semantics/forms/the-datalist-element/input-text-datalist-removal.html b/third_party/blink/web_tests/external/wpt/html/semantics/forms/the-datalist-element/input-text-datalist-removal.html index c85bd28..503b82e 100644 --- a/third_party/blink/web_tests/external/wpt/html/semantics/forms/the-datalist-element/input-text-datalist-removal.html +++ b/third_party/blink/web_tests/external/wpt/html/semantics/forms/the-datalist-element/input-text-datalist-removal.html
@@ -5,6 +5,12 @@ <link rel=match href="input-text-focused-ref.html"> <link rel=assert title="Text inputs should reset their datalist related appearance when the list attribute is removed."> +<style> +input { + caret-color: transparent; +} +</style> + <input list=mydatalist> <datalist id=mydatalist> <option>option</option>
diff --git a/third_party/blink/web_tests/external/wpt/html/semantics/forms/the-datalist-element/input-text-focused-ref.html b/third_party/blink/web_tests/external/wpt/html/semantics/forms/the-datalist-element/input-text-focused-ref.html index df8ea57..f78a937 100644 --- a/third_party/blink/web_tests/external/wpt/html/semantics/forms/the-datalist-element/input-text-focused-ref.html +++ b/third_party/blink/web_tests/external/wpt/html/semantics/forms/the-datalist-element/input-text-focused-ref.html
@@ -1,5 +1,10 @@ <!DOCTYPE html> <input> +<style> +input { + caret-color: transparent; +} +</style> <script> document.querySelector('input').focus(); </script>