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

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

Issue 1076093002: Minimize flicker by adding a   to nodes that will have (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ::after -> ::before Created 5 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
« no previous file with comments | « ui/webui/resources/css/chrome_shared.css ('k') | ui/webui/resources/js/i18n_template_no_process.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/webui/resources/css/i18n_process.css
diff --git a/ui/webui/resources/css/i18n_process.css b/ui/webui/resources/css/i18n_process.css
new file mode 100644
index 0000000000000000000000000000000000000000..44ca4b2ed20de5e2d8449cbbc925778f2d39bdf8
--- /dev/null
+++ b/ui/webui/resources/css/i18n_process.css
@@ -0,0 +1,9 @@
+/* Copyright 2015 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. */
+
+html:not(.i18n-processed) [i18n-content]::before,
Dan Beam 2015/04/11 00:48:32 change to ::before to avoid conflicting with uber
+html:not(.i18n-processed) [i18n-values*=".innerHTML:"]::before {
+ /* Insert a non-breaking space into nodes that have i18n'd content. */
+ content: '\00a0';
+}
« no previous file with comments | « ui/webui/resources/css/chrome_shared.css ('k') | ui/webui/resources/js/i18n_template_no_process.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698