Index: Source/WebCore/css/html.css |
=================================================================== |
--- Source/WebCore/css/html.css (revision 141524) |
+++ Source/WebCore/css/html.css (working copy) |
@@ -480,54 +480,60 @@ |
#if defined(ENABLE_INPUT_MULTIPLE_FIELDS_UI) && ENABLE_INPUT_MULTIPLE_FIELDS_UI |
#if defined(ENABLE_INPUT_TYPE_DATE) && ENABLE_INPUT_TYPE_DATE |
input[type="date"] { |
- -webkit-align-items: stretch; |
+ -webkit-align-items: center; |
display: -webkit-inline-flex; |
font-family: monospace; |
+ overflow: hidden; |
padding: 0; |
-webkit-padding-start: 1px; |
} |
#endif |
#if defined(ENABLE_INPUT_TYPE_DATETIME) && ENABLE_INPUT_TYPE_DATETIME |
input[type="datetime"] { |
- -webkit-align-items: stretch; |
+ -webkit-align-items: center; |
display: -webkit-inline-flex; |
font-family: monospace; |
+ overflow: hidden; |
padding: 0; |
-webkit-padding-start: 1px; |
} |
#endif |
#if defined(ENABLE_INPUT_TYPE_DATETIMELOCAL) && ENABLE_INPUT_TYPE_DATETIMELOCAL |
input[type="datetime-local"] { |
- -webkit-align-items: stretch; |
+ -webkit-align-items: center; |
display: -webkit-inline-flex; |
font-family: monospace; |
+ overflow: hidden; |
padding: 0; |
-webkit-padding-start: 1px; |
} |
#endif |
#if defined(ENABLE_INPUT_TYPE_MONTH) && ENABLE_INPUT_TYPE_MONTH |
input[type="month"] { |
- -webkit-align-items: stretch; |
+ -webkit-align-items: center; |
display: -webkit-inline-flex; |
font-family: monospace; |
+ overflow: hidden; |
padding: 0; |
-webkit-padding-start: 1px; |
} |
#endif |
#if defined(ENABLE_INPUT_TYPE_TIME) && ENABLE_INPUT_TYPE_TIME |
input[type="time"] { |
- -webkit-align-items: stretch; |
+ -webkit-align-items: center; |
display: -webkit-inline-flex; |
font-family: monospace; |
+ overflow: hidden; |
padding: 0; |
-webkit-padding-start: 1px; |
} |
#endif |
#if defined(ENABLE_INPUT_TYPE_WEEK) && ENABLE_INPUT_TYPE_WEEK |
input[type="week"] { |
- -webkit-align-items: stretch; |
+ -webkit-align-items: center; |
display: -webkit-inline-flex; |
font-family: monospace; |
+ overflow: hidden; |
padding: 0; |
-webkit-padding-start: 1px; |
} |
@@ -537,9 +543,17 @@ |
-webkit-flex: 1; |
-webkit-user-modify: read-only !important; |
display: inline-block; |
- white-space: pre; |
+ min-width: 0; |
+ overflow: hidden; |
} |
+input::-webkit-datetime-edit-fields-wrapper { |
+ -webkit-user-modify: read-only !important; |
+ display: inline-block; |
+ padding: 1px 0; |
+ white-space: nowrap; |
+} |
+ |
/* If you update padding, border, or margin in the following ruleset, update |
DateTimeFieldElement::maximumWidth too. */ |
input::-webkit-datetime-edit-ampm-field, |
@@ -589,12 +603,6 @@ |
font: inherit !important; |
} |
-input::-webkit-date-and-time-container { |
- -webkit-align-items: center; |
- -webkit-flex: 1; |
- display: -webkit-inline-flex; |
-} |
- |
input[type="date"]::-webkit-inner-spin-button, |
input[type="datetime"]::-webkit-inner-spin-button, |
input[type="datetime-local"]::-webkit-inner-spin-button, |