Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(270)

Unified Diff: Source/core/css/html.css

Issue 230193002: Spin button in input[type=number] should not ignore paddings. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/css/html.css
diff --git a/Source/core/css/html.css b/Source/core/css/html.css
index fbe5a1e5a7b05bd2634be3fa4a51a9ab0f017d63..0535953a6f2720324c74c57415a753bfeacd2bee 100644
--- a/Source/core/css/html.css
+++ b/Source/core/css/html.css
@@ -573,8 +573,8 @@ input[type="datetime-local"]::-webkit-inner-spin-button,
input[type="month"]::-webkit-inner-spin-button,
input[type="time"]::-webkit-inner-spin-button,
input[type="week"]::-webkit-inner-spin-button {
- display: inline-block;
- position: static;
+ /* FIXME: Remove height. */
+ height: 1.5em;
-webkit-margin-start: 2px;
}
@@ -601,15 +601,10 @@ input::-webkit-date-and-time-value {
input::-webkit-inner-spin-button {
-webkit-appearance: inner-spin-button;
- display: block;
- position: relative;
+ display: inline-block;
cursor: default;
- /* This height property is ignored for input type "number" and others which
- * use RenderTextControlSingleLine as renderer which sets height of spin
- * button in layout(). */
- height: 1.5em;
- vertical-align: top;
flex: none;
+ align-self: stretch;
-webkit-user-select: none;
-webkit-user-modify: read-only !important;
opacity: 0;
« no previous file with comments | « LayoutTests/platform/win/fast/speech/input-appearance-numberandspeech-expected.txt ('k') | Source/core/css/themeMac.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698