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

Unified Diff: ui/webui/resources/css/text_defaults.css

Issue 747923004: webui: minimize webui flicker. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: creis@ + davidben@ review Created 6 years, 1 month 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 | « ui/webui/resources/css/chrome_shared.css ('k') | ui/webui/resources/webui_resources.grd » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/webui/resources/css/text_defaults.css
diff --git a/ui/webui/resources/css/text_defaults.css b/ui/webui/resources/css/text_defaults.css
new file mode 100644
index 0000000000000000000000000000000000000000..3e9007a00a0510ecf6d841ee66f10032e6fade80
--- /dev/null
+++ b/ui/webui/resources/css/text_defaults.css
@@ -0,0 +1,22 @@
+/* Copyright 2014 The Chromium Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file. */
+
+/* This file is dynamically processed by a C++ data source handler to fill in
+ * some per-platform/locale styles that dramatically alter the page. This is
+ * done to reduce flicker, as JS may not run before the page is rendered.
+ *
+ * Include this stylesheet via its chrome://resources/ URL, i.e.:
+ *
+ * <link rel="stylesheet" href="chrome://resources/css/font_defaults.css">
+ *
+ * otherwise its $placeholders wont be expanded. */
+
+html {
+ direction: $1;
+}
+
+body {
+ font-family: $2;
+ font-size: $3;
+}
« no previous file with comments | « ui/webui/resources/css/chrome_shared.css ('k') | ui/webui/resources/webui_resources.grd » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698