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

Unified Diff: Source/core/rendering/RenderTheme.cpp

Issue 34753002: make input type=color RTL direction aware (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 2 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
« no previous file with comments | « Source/core/html/forms/ColorInputType.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/RenderTheme.cpp
diff --git a/Source/core/rendering/RenderTheme.cpp b/Source/core/rendering/RenderTheme.cpp
index 0680bd9b1e3aba5e289abdaf151cca6b109fee7d..30fe21042166d79982e61b2006464ee23ee284db 100644
--- a/Source/core/rendering/RenderTheme.cpp
+++ b/Source/core/rendering/RenderTheme.cpp
@@ -491,6 +491,7 @@ String RenderTheme::extraDefaultStyleSheet()
if (RuntimeEnabledFeatures::inputTypeColorEnabled()) {
runtimeCSS.appendLiteral("input[type=\"color\"][list] { -webkit-appearance: menulist; width: 88px; height: 23px;}");
runtimeCSS.appendLiteral("input[type=\"color\"][list]::-webkit-color-swatch-wrapper { padding-left: 8px; padding-right: 24px;}");
+ runtimeCSS.appendLiteral("input[type=\"color\"][list]::-webkit-color-swatch-wrapper-rtl { padding-left: 24px; padding-right: 8px;}");
tkent 2013/10/27 21:53:48 padding-left/right in the previous line should be
pals 2013/10/28 08:45:51 Done. Good idea. Thanks
runtimeCSS.appendLiteral("input[type=\"color\"][list]::-webkit-color-swatch { border-color: #000000;}");
}
}
« no previous file with comments | « Source/core/html/forms/ColorInputType.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698