diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-10 04:11:54 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-10 04:11:54 +0000 |
commit | 5c5f3dfb02c8c6712c86a12af33d3cf0c45b3051 (patch) | |
tree | c72c5bc84d38e5aaa9268be7fb3a348648f4af3c | |
parent | 5a9770cef775ebc35c700d9d7298c1de79243b6f (diff) | |
download | chromium_src-5c5f3dfb02c8c6712c86a12af33d3cf0c45b3051.zip chromium_src-5c5f3dfb02c8c6712c86a12af33d3cf0c45b3051.tar.gz chromium_src-5c5f3dfb02c8c6712c86a12af33d3cf0c45b3051.tar.bz2 |
[ntp] fix font measuring hack
one more style (font: -webkit-small-control) was needed to make the \#fontMeasuringDiv exactly match the input divs' appearance.
BUG=96889
TEST=in mac, all languages look good: fr, ko, ja, de, en, ml
Review URL: http://codereview.chromium.org/9359002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@121402 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/browser/resources/ntp4/new_tab.css | 2 | ||||
-rw-r--r-- | chrome/browser/resources/ntp4/new_tab.html | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/resources/ntp4/new_tab.css b/chrome/browser/resources/ntp4/new_tab.css index 80276e1..c268a8c 100644 --- a/chrome/browser/resources/ntp4/new_tab.css +++ b/chrome/browser/resources/ntp4/new_tab.css @@ -3,7 +3,6 @@ * found in the LICENSE file. */ html { - font-family: segoe ui, arial, helvetica, sans-serif; font-size: 14px; /* It's necessary to put this here instead of in body in order to get the background-size of 100% to work properly */ @@ -308,6 +307,7 @@ html[dir='rtl'] #footer.showing-trash-mode #trash.drag-target .lid { #fontMeasuringDiv { /* The font attributes match the nav inputs. */ + font: -webkit-small-control; font-size: 8pt; font-weight: bold; pointer-events: none; diff --git a/chrome/browser/resources/ntp4/new_tab.html b/chrome/browser/resources/ntp4/new_tab.html index eb1c80d..3ba6cf9 100644 --- a/chrome/browser/resources/ntp4/new_tab.html +++ b/chrome/browser/resources/ntp4/new_tab.html @@ -64,7 +64,7 @@ <script src="recently_closed.js"></script> </head> -<body> +<body i18n-values=".style.fontFamily:fontfamily;.style.fontSize:fontsize"> <button id="login-container" class="custom-appearance" hidden> <div id="login-status-header-container" class="login-status-row"> <div id="login-status-header"></div> |