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

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

Issue 1229573003: Teach i18nTemplate.process() to handle <link rel=import> and <template> (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: videoplayer test fixes Created 5 years, 5 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
index 44ca4b2ed20de5e2d8449cbbc925778f2d39bdf8..b74527a08f2c9f34c6dc6e0b406070eaa531d537 100644
--- a/ui/webui/resources/css/i18n_process.css
+++ b/ui/webui/resources/css/i18n_process.css
@@ -2,8 +2,16 @@
* 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,
-html:not(.i18n-processed) [i18n-values*=".innerHTML:"]::before {
+[i18n-content]::before,
+[i18n-values*=".innerHTML:"]::before {
/* Insert a non-breaking space into nodes that have i18n'd content. */
content: '\00a0';
}
+
+[i18n-processed][i18n-content]::before,
+[i18n-processed] [i18n-content]::before,
+[i18n-processed][i18n-values*=".innerHTML:"]::before,
+[i18n-processed] [i18n-values*=".innerHTML:"]::before {
+ /* Undo the non-breaking space hack after i18n-processing has run. */
+ content: normal;
+}
« no previous file with comments | « ui/file_manager/video_player/js/compiled_resources.gyp ('k') | ui/webui/resources/js/compiled_resources.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698