...
<rdar://problem/76918959>
Created attachment 426595 [details] Patch
Comment on attachment 426595 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=426595&action=review > Source/WebCore/ChangeLog:11 > + Currently, <select> decorations always have a system blue color, even > + if a different text color is specified. To improve stylability, the > + color of the decoration should match the color of the text. Even when the text is black? > LayoutTests/ChangeLog:13 > + * fast/forms/ios/form-control-refresh/select/decoration-color-expected-mismatch.html: Added. Mismatch tests are the least precise kind. But I suppose there is no chance to do better?
Created attachment 426638 [details] Example
(In reply to Darin Adler from comment #3) > Comment on attachment 426595 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=426595&action=review > > > Source/WebCore/ChangeLog:11 > > + Currently, <select> decorations always have a system blue color, even > > + if a different text color is specified. To improve stylability, the > > + color of the decoration should match the color of the text. > > Even when the text is black? Yes, the text color for a native <select> without styling is blue, so we still retain the existing appearance on unstyled controls. If the text color is set to black, we want the decoration to match, since it appears right alongside the text. I've attached a screenshot to demonstrate the black text color case. > > LayoutTests/ChangeLog:13 > > + * fast/forms/ios/form-control-refresh/select/decoration-color-expected-mismatch.html: Added. > > Mismatch tests are the least precise kind. But I suppose there is no chance > to do better? Unfortunately, no. The color of the decoration is not exposed to the web, and it's not possible to write a reference test, since there's only one way to modify the color. I did verify that the only difference between the mismatching test cases is the color of the decoration. However, I understand that doesn't really address the imprecision of mismatch tests as more changes are introduced in the future.
Committed r276366 (236844@main): <https://commits.webkit.org/236844@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 426595 [details].