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

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: estade@ review 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
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..bed65ccd66c418632ae39feb67e132e82960b537
--- /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]:empty::after,
Evan Stade 2015/04/10 23:56:59 do you still need the :empty?
Dan Beam 2015/04/11 00:48:32 I guess not.
+html:not(.i18n-processed) [i18n-values*=".innerHTML:"]:empty::after {
+ /* Insert a non-breaking space into empty nodes until i18n processing runs. */
+ content: '\00a0';
+}

Powered by Google App Engine
This is Rietveld 408576698