| | 100 | |
| | 101 | == Form validation message == |
| | 102 | |
| | 103 | Suppose that you want to modify colors of validation messages. Add the following CSS declarations: |
| | 104 | {{{ |
| | 105 | ::-webkit-validation-bubble-message { |
| | 106 | color: <text-color>; |
| | 107 | background: none; |
| | 108 | background-color: <background-color>; |
| | 109 | border-color: <border-color>; |
| | 110 | } |
| | 111 | |
| | 112 | ::-webkit-validation-bubble-top-outer-arrow { |
| | 113 | border-bottom-color: <border-color>; |
| | 114 | } |
| | 115 | |
| | 116 | ::-webkit-validation-bubble-top-inner-arrow { |
| | 117 | border-bottom-color: <background-color>; |
| | 118 | } |
| | 119 | }}} |
| | 120 | |
| | 121 | The default appearance is defined around http://trac.webkit.org/browser/trunk/Source/WebCore/css/html.css#L589 (Search for "validation") |